-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcontext.xml
More file actions
40 lines (35 loc) · 1.5 KB
/
context.xml
File metadata and controls
40 lines (35 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?xml version="1.0"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cxf="http://cxf.apache.org/blueprint/core"
xmlns:jaxrs="http://cxf.apache.org/blueprint/jaxrs"
xsi:schemaLocation="
http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
http://cxf.apache.org/blueprint/core http://cxf.apache.org/schemas/blueprint/core.xsd">
<jaxrs:server id="serviceEndpoint" address="/RestContext/swaggersocket_echo"
transportId="http://cxf.apache.org/transports/websocket">
<jaxrs:serviceBeans>
<ref component-id="echoServiceBean"/>
<ref component-id="fileServiceBean"/>
</jaxrs:serviceBeans>
<jaxrs:providers>
<bean class="com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider"/>
</jaxrs:providers>
</jaxrs:server>
<bean class="com.wordnik.swaggersocket.samples.SwaggerSocketResource"
id="echoServiceBean"/>
<bean class="com.wordnik.swaggersocket.samples.FileServiceResource"
id="fileServiceBean"/>
<!-- using a custom protocol interceptor that does swagger-socket -->
<bean class="com.wordnik.swaggersocket.server.SwaggerSocketProtocolInterceptor" id="protocolInterceptor"/>
<cxf:bus>
<cxf:features>
<!--
<cxf:logging/>
-->
</cxf:features>
<cxf:properties>
<entry key="atmosphere.interceptors" value-ref="protocolInterceptor"/>
</cxf:properties>
</cxf:bus>
</blueprint>