Example usage for org.springframework.boot.web.server WebServerFactoryCustomizer customize

List of usage examples for org.springframework.boot.web.server WebServerFactoryCustomizer customize

Introduction

In this page you can find the example usage for org.springframework.boot.web.server WebServerFactoryCustomizer customize.

Prototype

void customize(T factory);

Source Link

Document

Customize the specified WebServerFactory .

Usage

From source file:org.springframework.boot.web.server.WebServerFactoryCustomizerBeanPostProcessor.java

@SuppressWarnings({ "rawtypes", "unchecked" })
private void invokeCustomizer(WebServerFactoryCustomizer customizer, WebServerFactory webServerFactory) {
    try {//from   ww  w .  j  a va2 s.  c  o  m
        customizer.customize(webServerFactory);
    } catch (ClassCastException ex) {
        String msg = ex.getMessage();
        if (msg == null || msg.startsWith(webServerFactory.getClass().getName())) {
            // Possibly a lambda-defined listener which we could not resolve the
            // generic event type for
            logLambdaDebug(customizer, ex);
        } else {
            throw ex;
        }
    }
}