Custom WildFly JBossWeb Valve Initialization EAP 6.4.10

From NovaOrdis Knowledge Base
Revision as of 16:08, 28 February 2017 by Ovidiu (talk | contribs) (Created page with "=Internal= =Overview= The initialization is handled by <tt>org.jboss.as.web.WebValveService</tt>, which only handles global valves. The valves that subclass <tt>org.apache.c...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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);