tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Newberger" <>
Subject correct implementation of createWrapper() in StandardContext?
Date Mon, 07 Jan 2002 21:55:36 GMT
The Context interface specifies a setter and getter for the wrapperClass
property, which is to be the class that a Context will use to make its
Wrapper children.  While StandardContext implements those methods and
stores the property in an internal String 'wrapperClass' (which is
initialized to "org.apache.catalina.core.StandardWrapper"), that String
is never used; instead createWrapper() just directly creates a

    public Wrapper createWrapper() {

        Wrapper wrapper = new StandardWrapper();

I think this should probably create a new Wrapper object instance based
on the value of wrapperClass().

I am attempting to create a custom Wrapper with some custom behavior,
that will be enabled using a 'wrapperClass' attribute in a Context tag
in server.xml.


p l u m b d e s i g n
alan newberger 
chief architect
157 chambers st ny ny 10007
p.212.381.0541 | f.212.285.8999

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message