Custom WildFly JBossWeb Valve Initialization EAP 6.4.10

From NovaOrdis Knowledge Base
Revision as of 16:09, 28 February 2017 by Ovidiu (talk | contribs) (→‎Internal)
(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);