Methods Summary |
---|
public org.apache.catalina.Wrapper | createWrapper()Factory method to create and return a new Wrapper instance, of
the Java implementation class appropriate for this Context
implementation. The constructor of the instantiated Wrapper
will have been called, but no properties will have been set.
Wrapper wrapper = super.createWrapper();
((StandardWrapper) wrapper).setMaxInstances(stmPoolSize);
return wrapper;
|
public java.lang.String[] | getCacheControls()Gets the Cache-Control settings of this web module.
return cacheControls;
|
public java.lang.String | getContextRoot()Gets this web module's context root.
return contextRoot;
|
public java.lang.String | getDefaultCharset()Gets the value of the default-charset attribute of the
parameter-encoding element
return defaultCharset;
|
public boolean | getEncodeCookies()return _encodeCookies property value
return _encodeCookies;
|
public java.lang.String[] | getEndpointAddresses()Gets the URL addresses corresponding to the web services endpoints of
this web module.
return endpointAddresses;
|
public java.lang.String | getFormHintField()return parameter-encoding form-hint-field attribute value
return formHintField;
|
public boolean | getHasWebServices()Return the hasWebServices flag for this web module.
return hasWebServices;
|
public java.lang.String | getID()Gets this web module's identifier.
return _id;
|
public java.lang.String | getModuleName()Gets this web module's name.
return this.moduleName;
|
public boolean | getResponseCTForHeaders()return _useResponseCTForHeaders property value
return _useResponseCTForHeaders;
|
public int | getSTMPoolSize()Return maximum number of instances that will be allocated when a single
thread model servlet is used in this web module.
return (this.stmPoolSize);
|
public com.sun.enterprise.web.session.SessionCookieConfig | getSessionCookieConfig()Return the session cookie configuration for this web module.
return _cookieConfig;
|
public abstract boolean | hasLocaleToCharsetMapping()Returns true if this web module specifies a locale-charset-map in its
sun-web.xml, false otherwise.
|
boolean | hasWebXml()
return hasWebXml;
|
public abstract java.lang.String | mapLocalesToCharset(java.util.Enumeration locales)Matches the given request locales against the charsets specified in
the locale-charset-map of this web module's sun-web.xml, and returns
the first matching charset.
|
public void | setCacheControls(java.lang.String[] cacheControls)Sets the Cache-Control configuration for this web module.
this.cacheControls = cacheControls;
|
public void | setContextRoot(java.lang.String contextRoot)Sets this web module's context root.
this.contextRoot = contextRoot;
|
public void | setEncodeCookies(boolean flag)Determines whether cookies should be encoded or not.
If the property encodeCookies is set to false in sun-web.xml,
cookies will not be URL encoded. The default behaviuor is that
we always encode the cookies unless the property encodeCookies
is set to false in sun-web.xml.
_encodeCookies = flag;
|
public void | setEndpointAddresses(java.lang.String[] endpointAddresses)Sets the URL addresses corresponding to the web services endpoints of
this web module.
this.endpointAddresses = (String[])endpointAddresses.clone();
|
public void | setHasWebServices(boolean hasWebServices)Set the hasWebServices boolean flag for this web module.
this.hasWebServices = hasWebServices;
|
void | setHasWebXml(boolean hasWebXml)
this.hasWebXml = hasWebXml;
|
public void | setID(java.lang.String id)Sets this web module's identifier.
_id = id;
|
public void | setModuleName(java.lang.String moduleName)Sets this web module's name.
this.moduleName = moduleName;
|
public void | setResponseCTForHeaders()sets _useResponseCTForHeaders property value. When
_useResponseCTForHeaders is set to true, it means that
we send the response header in the same encoding of the
response charset instead of UTF-8, (see the method sendHeaders
in com.sun.enterprise.web.connector.nsapi.nsapiNSAPIResponse)
_useResponseCTForHeaders = true;
|
public void | setSTMPoolSize(int newPoolSize)Set the maximum number of instances that will be allocated when a single
thread model servlet is used in this web module.
int oldPoolSize = this.stmPoolSize;
this.stmPoolSize = newPoolSize;
support.firePropertyChange("stmPoolSize", Integer.valueOf(oldPoolSize),
Integer.valueOf(this.stmPoolSize));
|
public void | setSessionCookieConfig(com.sun.enterprise.web.session.SessionCookieConfig cookieConfig)Set the session cookie configuration for this web module.
_cookieConfig = cookieConfig;
|