FileDocCategorySizeDatePackage
LoginConfigDecorator.javaAPI DocGlassfish v2 API3175Fri May 04 22:36:04 BST 2007com.sun.enterprise.web.deploy

LoginConfigDecorator

public class LoginConfigDecorator extends org.apache.catalina.deploy.LoginConfig
Decorator of class org.apache.catalina.deploy.LoginConfig
author
Jean-Francois Arcand

Fields Summary
private com.sun.enterprise.deployment.web.LoginConfiguration
decoree
private String
errorPage
private String
loginPage
Constructors Summary
public LoginConfigDecorator(com.sun.enterprise.deployment.web.LoginConfiguration decoree)

        this.decoree = decoree;
        
        String errorPage = RequestUtil.URLDecode(decoree.getFormErrorPage());
        if (!errorPage.startsWith("/")){
            errorPage = "/" + errorPage;
        }
        setErrorPage(errorPage);
        
        String loginPage = RequestUtil.URLDecode(decoree.getFormLoginPage());
        if (!loginPage.startsWith("/")){
            loginPage = "/" + loginPage;
        }     
        setLoginPage(loginPage);
        setAuthMethod(decoree.getAuthenticationMethod());
        setRealmName(decoree.getRealmName());
    
Methods Summary