Change-Id: I50e57fcafd472cbfd72fc911e863e118a62ab5ba Former-commit-id: 6fca25e457989f4757999cfcce40ff9a3b1fc393
28 lines
1.5 KiB
XML
28 lines
1.5 KiB
XML
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
|
|
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
|
|
|
|
<camelContext id="ebxml-request-service-camel"
|
|
xmlns="http://camel.apache.org/schema/spring"
|
|
errorHandlerRef="errorHandler">
|
|
|
|
<propertyPlaceholder id="ebxmlThriftServiceProperties"
|
|
location="classpath:com.raytheon.uf.edex.registry.ebxml.properties"/>
|
|
|
|
<restConfiguration component="jetty" host="0.0.0.0" port="{{ebxml.thrift.service.port}}" >
|
|
<endpointProperty key="disableStreamCache" value="{{ebxml.thrift.service.disableStreamCache}}" />
|
|
<endpointProperty key="chunked" value="{{ebxml.thrift.service.chunked}}" />
|
|
</restConfiguration>
|
|
|
|
<rest path="{{env:HTTP_SERVER_PATH}}">
|
|
<post uri="/{format}">
|
|
<to uri="bean:httpServiceExecutor?method=execute(${body}, ${header.format}, ${in.header.accept-encoding}, ${in.header.CamelHttpServletResponse})" />
|
|
</post>
|
|
<post uri="/">
|
|
<to uri="bean:httpServiceExecutor?method=execute(${body}, ${in.header.content-type}, ${in.header.accept-encoding}, ${in.header.CamelHttpServletResponse})" />
|
|
</post>
|
|
</rest>
|
|
</camelContext>
|
|
|
|
</beans>
|