Examples of addUrlMappings()


Examples of org.jboss.as.web.host.ServletBuilder.addUrlMappings()

                List<ParamValueMetaData> params = smd.getInitParam();
                List<String> urlPatterns = null;
                for (ServletMappingMetaData smmd : jbwebMD.getServletMappings()) {
                    if (smmd.getServletName().equals(servletName)) {
                        urlPatterns = smmd.getUrlPatterns();
                        servletBuilder.addUrlMappings(urlPatterns);
                        break;
                    }
                }

                WSFServlet wsfs = new WSFServlet();
View Full Code Here

Examples of org.springframework.boot.context.embedded.ServletRegistrationBean.addUrlMappings()

    private static final Logger logger = LoggerFactory.getLogger(GenericTestProxyContainer.class);

    @Bean
    public ServletRegistrationBean dispatcherRegistration() {
        ServletRegistrationBean registration = new ServletRegistrationBean(new TestHandler());
        registration.addUrlMappings("/*");

        return registration;
    }

    @Bean
View Full Code Here

Examples of org.springframework.boot.context.embedded.ServletRegistrationBean.addUrlMappings()

    private static final Logger logger = LoggerFactory.getLogger(GenericProxyContainer.class);

    @Bean
    public ServletRegistrationBean dispatcherRegistration() {
        ServletRegistrationBean registration = new ServletRegistrationBean(new Proxy());
        registration.addUrlMappings("/*");

        return registration;
    }

    @Bean
View Full Code Here

Examples of org.springframework.boot.context.embedded.ServletRegistrationBean.addUrlMappings()

public class H2Initializer {

  @Bean
  public ServletRegistrationBean h2Servlet() {
    ServletRegistrationBean servletBean = new ServletRegistrationBean();
    servletBean.addUrlMappings("/h2/*");
    servletBean.setServlet(new WebServlet());
    return servletBean;
  }
}
View Full Code Here

Examples of org.springframework.boot.context.embedded.ServletRegistrationBean.addUrlMappings()

    @Bean
    public ServletRegistrationBean jersey() {
        Servlet jerseyServlet = new SpringServlet();
        ServletRegistrationBean jerseyServletRegistration = new ServletRegistrationBean();
        jerseyServletRegistration.setServlet(jerseyServlet);
        jerseyServletRegistration.addUrlMappings("/api/v1/*");
        jerseyServletRegistration.setName("jersey-servlet");
        jerseyServletRegistration.setLoadOnStartup(1);
        jerseyServletRegistration.addInitParameter("com.sun.jersey.api.json.POJOMappingFeature", "true");
        jerseyServletRegistration.addInitParameter("com.sun.jersey.spi.container.ContainerResponseFilters",
                ResponseCorsFilter.class.getName());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.