awips2/edexOsgi/com.raytheon.uf.edex.registry.ebxml/res/spring/ebxml-thrift-client-route.xml

29 lines
1.5 KiB
XML
Raw Normal View History

<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>