Package org.springframework.boot.context.embedded.jetty

Examples of org.springframework.boot.context.embedded.jetty.JettyServerCustomizer


            @Override
            public void customize(ConfigurableEmbeddedServletContainer containerFactory) {
                if (containerFactory instanceof JettyEmbeddedServletContainerFactory) {
                    JettyEmbeddedServletContainerFactory factory = (JettyEmbeddedServletContainerFactory) containerFactory;
                    factory.addServerCustomizers(new JettyServerCustomizer() {
                        @Override
                        public void customize(Server server) {
                            webapp.setServer(server);
                        }
                    });
View Full Code Here


   */
  @Bean
  public EmbeddedServletContainerFactory servletContainerFactory() {
    JettyEmbeddedServletContainerFactory factory = new JettyEmbeddedServletContainerFactory();
    factory.setPort(8080);
    factory.addServerCustomizers(new JettyServerCustomizer() {
      public void customize(Server server) {
        ServletContainer servletContainer = new ServletContainer(new Api1());
        ServletHolder sh = new ServletHolder(servletContainer);

        ServletContextHandler context = new ServletContextHandler(ServletContextHandler.NO_SESSIONS);
View Full Code Here

TOP

Related Classes of org.springframework.boot.context.embedded.jetty.JettyServerCustomizer

Copyright © 2018 www.massapicom. 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.