-
1. Re: WildFly replacement for Valve in jboss-web.xml
jaikiran Jul 25, 2014 10:07 AM (in response to mylos78)I don't fully remember, but I think there was some effort to help migrate the AS7 valves to Undertow.
-
2. Re: WildFly replacement for Valve in jboss-web.xml
pferraro Jul 25, 2014 1:39 PM (in response to mylos78)The equivalent concept is an HttpHandler. You then need to create a ServletExtension that adds your custom handler to the handler chain. You then need to create a WEB-INF/classes/META-INF/services/io.undertow.servlet.ServletExtension file to your war so that WildFly/Undertow can load your custom extension during deployment. There's a detailed example of this here:
http://undertow.io/documentation/servlet/using-non-blocking-handlers-with-servlet.html
-
3. Re: WildFly replacement for Valve in jboss-web.xml
ctomc Jul 26, 2014 6:20 AM (in response to pferraro)or by adding
WEB-INF/undertow-handlers.conf / META-INF/undertow-handlers.conf
where you just list your handlers to be executed as part of request lifecycle
-
4. Re: WildFly replacement for Valve in jboss-web.xml
vvn07 Dec 7, 2015 12:17 PM (in response to pferraro)How can i get the Session information in the handleRequest method ? I am trying the below code
SessionConfig sc = exchange.getAttachment(SessionConfig.ATTACHMENT_KEY);
SessionManager sm = exchange.getAttachment(SessionManager.ATTACHMENT_KEY);
if (sc != null && sm != null) {
Session session = sm.getSession(exchange, sc);
if (session != null) {
//My action
}
}
But the SessionConfig and manager is always coming as null.
-
5. Re: WildFly replacement for Valve in jboss-web.xml
jamat Dec 7, 2015 3:41 PM (in response to pferraro)This link does not work for me.