You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Alan Newberger <al...@plumbdesign.com> on 2002/01/07 22:55:36 UTC

correct implementation of createWrapper() in StandardContext?

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
StandardWrapper:

...
    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.

Thanks,
alan

________________________________________________________________________
 
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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>