Example usage for org.springframework.boot.web.embedded.tomcat TomcatServletWebServerFactory getEngineValves

List of usage examples for org.springframework.boot.web.embedded.tomcat TomcatServletWebServerFactory getEngineValves

Introduction

In this page you can find the example usage for org.springframework.boot.web.embedded.tomcat TomcatServletWebServerFactory getEngineValves.

Prototype

public Collection<Valve> getEngineValves() 

Source Link

Document

Returns a mutable collection of the Valve s that will be applied to the Tomcat Engine .

Usage

From source file:org.springframework.boot.actuate.autoconfigure.EndpointWebMvcAutoConfigurationTests.java

private AccessLogValve findAccessLogValve(TomcatServletWebServerFactory webServerFactory) {
    for (Valve engineValve : webServerFactory.getEngineValves()) {
        if (engineValve instanceof AccessLogValve) {
            return (AccessLogValve) engineValve;
        }//from w w w  .j a v  a2 s.  c om
    }
    return null;
}