org.apache.camel.component.servlet.CamelHttpTransportServlet的实例源码

项目:camel-springboot-rest-ose    文件route.java   
@Bean
ServletRegistrationBean camelServlet() {
    // Todo: Camel 2.19 should support this OOTB
    // use a @Bean to register the Camel servlet which we need to do
    // because we want to use the camel-servlet component for the Camel REST service
    ServletRegistrationBean mapping = new ServletRegistrationBean();
    mapping.setName("CamelServlet");
    mapping.setLoadOnStartup(1);
    // CamelHttpTransportServlet is the name of the Camel servlet to use
    mapping.setServlet(new CamelHttpTransportServlet());
    mapping.addUrlMappings("/api/*");
    return mapping;
}
项目:funktion-connectors    文件FunktionRouteBuilder.java   
@Bean
ServletRegistrationBean camelServlet() {
    // use a @Bean to register the Camel servlet which we need to do
    // because we want to use the camel-servlet component for the Camel REST service
    ServletRegistrationBean mapping = new ServletRegistrationBean();
    mapping.setName("CamelServlet");
    mapping.setLoadOnStartup(1);
    mapping.setServlet(new CamelHttpTransportServlet());
    mapping.addUrlMappings("/camel/*");
    return mapping;
}
项目:camelinaction2    文件ratingRoute.java   
@Bean
ServletRegistrationBean camelServlet() {
    // Todo: Camel 2.19 should support this OOTB
    // use a @Bean to register the Camel servlet which we need to do
    // because we want to use the camel-servlet component for the Camel REST service
    ServletRegistrationBean mapping = new ServletRegistrationBean();
    mapping.setName("CamelServlet");
    mapping.setLoadOnStartup(1);
    // CamelHttpTransportServlet is the name of the Camel servlet to use
    mapping.setServlet(new CamelHttpTransportServlet());
    mapping.addUrlMappings("/api/*");
    return mapping;
}
项目:camel-cookbook-examples    文件Application.java   
@Bean
public ServletRegistrationBean servletRegistrationBean() {
    ServletRegistrationBean registration =
            new ServletRegistrationBean(new CamelHttpTransportServlet(),CAMEL_URL_MAPPING);
    registration.setName(CAMEL_SERVLET_NAME);
    return registration;
}
项目:ultrahouse3000    文件Application.java   
@Bean
public ServletRegistrationBean camelServlet() {
    ServletRegistrationBean registration = new ServletRegistrationBean(new CamelHttpTransportServlet(),"/camel/*");
    registration.setName("CamelServlet");
    return registration;
}

相关文章

买水果
比较全面的redis工具类
gson 反序列化到多态子类
java 版本的 mb_strwidth
JAVA 反转字符串的最快方法,大概比StringBuffer.reverse()性...
com.google.gson.internal.bind.ArrayTypeAdapter的实例源码...