ServletRequestContext null in HttpserverExchange

Posted on

I have created an undertow web handler (filter) in order to get information from http sesssion, but when accessing to servletcontext it is null:
ServletRequestContext context = exchange.getAttachment(ServletRequestContext.ATTACHMENT_KEY);
Any idea??

Responses