Search in sources :

Example 1 with ServletSecurityRoleHandler

use of io.undertow.servlet.handlers.security.ServletSecurityRoleHandler in project undertow by undertow-io.

the class ServletPathMatches method servletChain.

private static ServletChain servletChain(HttpHandler next, final ManagedServlet managedServlet, final String servletPath, final DeploymentInfo deploymentInfo, boolean defaultServlet, MappingMatch mappingMatch, String pattern) {
    HttpHandler servletHandler = new ServletSecurityRoleHandler(next, deploymentInfo.getAuthorizationManager());
    servletHandler = wrapHandlers(servletHandler, managedServlet.getServletInfo().getHandlerChainWrappers());
    return new ServletChain(servletHandler, managedServlet, servletPath, defaultServlet, mappingMatch, pattern);
}
Also used : HttpHandler(io.undertow.server.HttpHandler) ServletSecurityRoleHandler(io.undertow.servlet.handlers.security.ServletSecurityRoleHandler)

Aggregations

HttpHandler (io.undertow.server.HttpHandler)1 ServletSecurityRoleHandler (io.undertow.servlet.handlers.security.ServletSecurityRoleHandler)1