List of usage examples for org.springframework.boot.web.servlet ServletRegistrationBean ServletRegistrationBean
public ServletRegistrationBean(T servlet, String... urlMappings)
From source file:cn.edu.zjnu.acm.judge.config.RegistrationBeanConfiguration.java
@Bean public ServletRegistrationBean kaptcha() { Servlet servlet = new KaptchaServlet(); ServletRegistrationBean servletRegistrationBean = new ServletRegistrationBean(servlet, "/images/rand.jpg"); servletRegistrationBean.addInitParameter(com.google.code.kaptcha.Constants.KAPTCHA_SESSION_CONFIG_KEY, "word"); return servletRegistrationBean; }
From source file:org.camelcookbook.runtimes.boot.Application.java
@Bean public ServletRegistrationBean servletRegistrationBean() { ServletRegistrationBean registration = new ServletRegistrationBean(new CamelHttpTransportServlet(), CAMEL_URL_MAPPING);// w ww . ja v a 2s. c o m registration.setName(CAMEL_SERVLET_NAME); return registration; }
From source file:com.consol.citrus.samples.todolist.soap.WebServiceApplicationConfig.java
@Bean public ServletRegistrationBean messageDispatcherServlet(ApplicationContext applicationContext) { MessageDispatcherServlet servlet = new MessageDispatcherServlet(); servlet.setApplicationContext(applicationContext); servlet.setTransformWsdlLocations(true); return new ServletRegistrationBean(servlet, "/services/ws/*"); }
From source file:com.lofidewanto.demo.server.DemoGwtSpringbootApplication.java
@Bean public ServletRegistrationBean servletRegistrationBean() { return new ServletRegistrationBean(new RemoteLoggingServiceImpl(), DemoGwtServiceEndpoint.GWT_REMOTE_LOGGING + "/*"); }
From source file:org.example.fis.Application.java
@Bean ServletRegistrationBean servletRegistrationBean() { ServletRegistrationBean servlet = new ServletRegistrationBean(new CamelHttpTransportServlet(), "/rest/*"); servlet.setName("CamelServlet"); return servlet; }
From source file:io.fabric8.quickstarts.camel.Application.java
@Bean ServletRegistrationBean servletRegistrationBean() { ServletRegistrationBean servlet = new ServletRegistrationBean(new CamelHttpTransportServlet(), "/camel-rest-sql/*"); servlet.setName("CamelServlet"); return servlet; }
From source file:com.redhat.products.Application.java
@Bean ServletRegistrationBean servletRegistrationBean() { ServletRegistrationBean servlet = new ServletRegistrationBean(new CamelHttpTransportServlet(), "/shipping/*"); servlet.setName("CamelServlet"); return servlet; }
From source file:ph.com.fsoft.temp.service.blue.WebServiceConfiguration.java
/** * You can copy-paste this. This is constantly present, and this * configuration will probably not change. * * @return//from w w w .j a v a 2s. c om */ @Bean public ServletRegistrationBean servletRegistrationBean() { CXFServlet cxfServlet = new CXFServlet(); cxfServlet.setBus(bus); return new ServletRegistrationBean(cxfServlet, "/api/soap/*"); }
From source file:com.redhat.coolstore.api_gateway.ApiGatewayApplication.java
@Bean public ServletRegistrationBean servletRegistrationBean() { ServletRegistrationBean registration = new ServletRegistrationBean(new CORSServlet(), CAMEL_URL_MAPPING); registration.setName(CAMEL_SERVLET_NAME); return registration; }
From source file:com.redhat.coolstore.api_gateway.ApiGatewayApplication.java
@Bean public ServletRegistrationBean metricsServlet() { ServletRegistrationBean registration = new ServletRegistrationBean(new HystrixEventStreamServlet(), "/hystrix.stream"); return registration; }