Custom WildFly JBossWeb Valve Initialization EAP 6.4.10

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Overview

The initialization is handled by org.jboss.as.web.WebValveService, which only handles global valves. The valves that subclass org.apache.catalina.authenticator.AuthenticatorBase are handled differently. Once the valve instance is instantiated and configured, it is added to the webServer:

org.jboss.as.web.WebServer webServer = ...
webServer.getValue().addValve(valve);