本文主要是介绍camel发布restlet,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"xmlns:camel-cxf="http://camel.apache.org/schema/blueprint/cxf"xmlns:cxfcore="http://cxf.apache.org/blueprint/core"xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd http://camel.apache.org/schema/blueprint/cxf http://camel.apache.org/schema/blueprint/cxf/camel-cxf.xsdhttp://cxf.apache.org/blueprint/core http://cxf.apache.org/schemas/blueprint/core.xsdhttp://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0 http://aries.apache.org/schemas/blueprint-cm/blueprint-cm-1.1.0.xsd"><reference id="authService" interface="WHTR.Common.Auth.AuthContract.IAuthService"/> <bean id="authProcessorBean" class="WHTR.Common.Auth.AuthService.Processor.AuthProcessor"><property name="authService" ref="authService"/></bean><camelContext xmlns="http://camel.apache.org/schema/blueprint" ><restConfiguration component="restlet" port="9012" host="0.0.0.0" ><componentProperty key="restletMethods" value="GET,POST,PUT,DELETE"/></restConfiguration><rest path="/RS"><get uri="/Auth/{resource}/{name}/{group}"><to uri="vm:authProcessor"/> </get></rest></camelContext><camelContext id="camel-authmgtAuth" xmlns="http://camel.apache.org/schema/blueprint" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd"><route><from uri="vm:authProcessor"/><to uri="bean:authProcessorBean"/> </route></camelContext>
</blueprint>
这篇关于camel发布restlet的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!