Converting Tomcat Valves to Undertow Handlers

Undertow doesn’t support the older JBoss Web valves, however most of them can be easily migrated to Undertow handlers.Here is a list of those valves and their corresponding Undertow handler:

ValveHandler
org.apache.catalina.valves.AccessLogValveio.undertow.server.handlers.accesslog.AccessLogHandler
org.apache.catalina.valves.ExtendedAccessLogValveio.undertow.server.handlers.accesslog.AccessLogHandler
org.apache.catalina.valves.RequestDumperValveio.undertow.server.handlers.RequestDumpingHandler
org.apache.catalina.valves.RewriteValveio.undertow.server.handlers.SetAttributeHandler
org.apache.catalina.valves.RemoteHostValveio.undertow.server.handlers.AccessControlListHandler
org.apache.catalina.valves.RemoteAddrValveio.undertow.server.handlers.IPAddressAccessControlHandler
org.apache.catalina.valves.RemoteIpValveio.undertow.server.handlers.ProxyPeerAddressHandler
org.apache.catalina.valves.StuckThreadDetectionValveio.undertow.server.handlers.StuckThreadDetectionHandler
org.apache.catalina.valves.CrawlerSessionManagerValveio.undertow.servlet.handlers.CrawlerSessionManagerHandler

It is possible to do a migration of the older web legacy subsystem configuration and related persisted data by invoking the legacy subsystem’s migrate operation, using the management CLI:

/subsystem=web:migrate