Package org.jboss.as.test.integration.web.security.external

Source Code of org.jboss.as.test.integration.web.security.external.UserHandlerExtension

package org.jboss.as.test.integration.web.security.external;

import io.undertow.server.HandlerWrapper;
import io.undertow.server.HttpHandler;
import io.undertow.servlet.ServletExtension;
import io.undertow.servlet.api.DeploymentInfo;

import javax.servlet.ServletContext;

/**
* @author Stuart Douglas
*/
public class UserHandlerExtension implements ServletExtension {
    @Override
    public void handleDeployment(DeploymentInfo deploymentInfo, ServletContext servletContext) {
        deploymentInfo.addInitialHandlerChainWrapper(new HandlerWrapper() {
            @Override
            public HttpHandler wrap(HttpHandler handler) {
                return new UserHandler(handler);
            }
        });
    }
}
TOP

Related Classes of org.jboss.as.test.integration.web.security.external.UserHandlerExtension

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.