How to configure valve in embedded tomcat?

1.2k views Asked by At
1

There are 1 answers

0
user967710 On

It is part of Pipeline which is part of Host, so you would do:

    Tomcat tomcat = new Tomcat();

    Host host = new StandardHost();
    Valve valve = ...

    host.getPipeline().addValve(valve);
    tomcat.setHost(host);