Package org.springframework.boot.context.embedded

Examples of org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer


    }

    @Bean
    @ConditionalOnBean(WebAppContext.class)
    public EmbeddedServletContainerCustomizer warContainerCustomizer(final WebAppContext webapp) {
        return new EmbeddedServletContainerCustomizer() {

            @Override
            public void customize(ConfigurableEmbeddedServletContainer containerFactory) {
                if (containerFactory instanceof JettyEmbeddedServletContainerFactory) {
                    JettyEmbeddedServletContainerFactory factory = (JettyEmbeddedServletContainerFactory) containerFactory;
View Full Code Here


    return createTomcatCustomizer(keystoreFile, keystorePass, httpsPort);
  }

  private EmbeddedServletContainerCustomizer createNoCustomizationCustomizer() {
    return new EmbeddedServletContainerCustomizer() {

      @Override
      public void customize(ConfigurableEmbeddedServletContainer container) {
      }
    };
View Full Code Here

  private EmbeddedServletContainerCustomizer createTomcatCustomizer(
      final String keystoreFile, final String keystorePass,
      final int httpsPort) {

    return new EmbeddedServletContainerCustomizer() {
      @Override
      public void customize(
          ConfigurableEmbeddedServletContainer container) {

        TomcatEmbeddedServletContainerFactory tomcat = (TomcatEmbeddedServletContainerFactory) container;
View Full Code Here

  private static Log logger = LogFactory.getLog(WebSocketAutoConfiguration.class);

  @Bean
  @ConditionalOnMissingBean(name = "websocketContainerCustomizer")
  public EmbeddedServletContainerCustomizer websocketContainerCustomizer() {
    return new EmbeddedServletContainerCustomizer() {

      @Override
      public void customize(ConfigurableEmbeddedServletContainer container) {
        if (container instanceof NonEmbeddedServletContainerFactory) {
          logger.info("NonEmbeddedServletContainerFactory detected. Websockets "
View Full Code Here

  @Configuration
  protected static class CustomizeConfig {

    @Bean
    public EmbeddedServletContainerCustomizer containerCustomizer() {
      return new EmbeddedServletContainerCustomizer() {

        @Override
        public void customize(ConfigurableEmbeddedServletContainer container) {
          container.setPort(3000);
        }
View Full Code Here

TOP

Related Classes of org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer

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.