微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。