FileDocCategorySizeDatePackage
StandardWrapperFacade.javaAPI DocGlassfish v2 API3926Fri May 04 22:31:54 BST 2007org.apache.catalina.core

StandardWrapperFacade

public final class StandardWrapperFacade extends Object implements ServletConfig
Facade for the StandardWrapper object.
author
Remy Maucharat
version
$Revision: 1.4 $ $Date: 2007/05/05 05:31:54 $

Fields Summary
private ServletConfig
config
Wrapped config.
private ServletContext
context
The context facade object for this wrapper.
Constructors Summary
public StandardWrapperFacade(StandardWrapper config)
Create a new facede around a StandardWrapper.


        super();
        this.config = (ServletConfig) config;
    
Methods Summary
public java.lang.StringgetInitParameter(java.lang.String name)

        return config.getInitParameter(name);
    
public java.util.EnumerationgetInitParameterNames()

        return config.getInitParameterNames();
    
public javax.servlet.ServletContextgetServletContext()


        if (context == null) {
            context = config.getServletContext();
            if ((context != null) && (context instanceof ApplicationContext)) {
                context = ((ApplicationContext) context).getFacade();
            }
        }

        return context;
    
public java.lang.StringgetServletName()



    // -------------------------------------------------- ServletConfig Methods


       
        return config.getServletName();