Context that is used as a place-holder for deployed applications when their deployment
fails and a Context instance (usually org.apache.catalina.core.StandardContext but may be any Context
implementation) cannot be created.
| Modifier and Type | Field and Description |
|---|---|
| private URL | |
| private String | |
| private String | |
| private Container | |
| private String | |
| protected static final StringManager | |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addApplicationListener(String
Java class name of a listener class listener)Implements org. Add a new Listener class name to the set of Listeners configured for this application. |
| public void | addApplicationParameter(ApplicationParameter
The new application parameter parameter)Implements org. Add a new application parameter for this application. |
| public void | addChild(Container
New child Container to be added child)Implements org. Add a new child Container to those associated with this Container, if supported. |
| public void | addConstraint(SecurityConstraint
The security constraint that should be added constraint)Implements org. Add a security constraint to the set for this web application. |
| public void | addContainerListener(ContainerListener
The listener to add listener)Implements org. Add a container event listener to this component. |
| public void | addErrorPage(ErrorPage
The error page definition to be added errorPage)Implements org. Add an error page for the specified error or Java exception. |
| public void | addFilterDef(FilterDef
The filter definition to be added filterDef)Implements org. Add a filter definition to this Context. |
| public void | addFilterMap(FilterMap
The filter mapping to be added filterMap)Implements org. Add a filter mapping to this Context. |
| public void | addFilterMapBefore(FilterMap
The filter mapping to be added filterMap)Implements org. Add a filter mapping to this Context before the mappings defined in the deployment descriptor but after any other mappings added via this method. |
| public void | addLocaleEncodingMappingParameter(String
locale to map an encoding for locale, String encoding to be used for a give locale encoding)Implements org. Add a Locale Encoding Mapping (see Sec 5.4 of Servlet spec 2.4) |
| public void | addMimeMapping(String
Filename extension being mapped extension, String Corresponding MIME type mimeType)Implements org. Add a new MIME mapping, replacing any existing mapping for the specified extension. |
| public void | addParameter(String
Name of the new parameter name, String Value of the new parameter value)Implements org. Add a new context initialization parameter, replacing any existing value for the specified name. |
| public void | addPostConstructMethod(String
Fully qualified class name clazz, String Post construct method name method)Implements org. Add a post construct method definition for the given class, if there is an existing definition for the specified class - IllegalArgumentException will be thrown. |
| public void | addPreDestroyMethod(String
Fully qualified class name clazz, String Post construct method name method)Implements org. Add a pre destroy method definition for the given class, if there is an existing definition for the specified class - IllegalArgumentException will be thrown. |
| public void | addPropertyChangeListener(PropertyChangeListener
The listener to add listener)Implements org. Add a property change listener to this component. |
| public void | addRoleMapping(String
Security role used in the application role, String Actual security role to check for link)Implements org. Add a security role reference for this web application. |
| public void | addSecurityRole(String
New security role role)Implements org. Add a new security role for this web application. |
| public void | addServletContainerInitializer(ServletContainerInitializer
The instance to add sci, Set<Class<?>> The classes in which the initializer expressed an
interest classes)Implements org. Add a ServletContainerInitializer instance to this web application. |
| public void | addServletMappingDecoded(String
URL pattern to be mapped pattern, String Name of the corresponding servlet to execute name, boolean true if name identifies the JspServlet
and pattern contains a wildcard; false otherwise jspWildcard)Implements org. Add a new servlet mapping, replacing any existing mapping for the specified pattern. |
| public Set | addServletSecurity(ServletRegistration.
Servlet security was modified for registration,new security constraints for this Servlet servletSecurityElement)Implements org. Notification that Servlet security has been dynamically set in a
|
| public synchronized void | |
| public void | addWatchedResource(String
Path to the resource, relative to docBase name)Implements org. Add a resource which will be watched for reloading by the host auto deployer. |
| public void | addWelcomeFile(String
New welcome file name name)Implements org. Add a new welcome file to the set recognized by this Context. |
| public void | addWrapperLifecycle(String
Java class name of a LifecycleListener class listener)Implements org. Add the classname of a LifecycleListener to be added to each Wrapper appended to this Context. |
| public void | addWrapperListener(String
Java class name of a ContainerListener class listener)Implements org. Add the classname of a ContainerListener to be added to each Wrapper appended to this Context. |
| public void | backgroundProcess()
Implements org. Execute a periodic task, such as reloading, etc. This method will be invoked inside the classloading context of this container. |
| public ClassLoader | bind(boolean
Should a usePrivilegedAction, ClassLoader java. be used when
obtaining the current thread context class loader and setting
the new one?The current class loader if known to save this method having to
look it up originalClassLoader)Implements org. Change the current thread context class loader to the web application class loader. |
| public InstanceManager | createInstanceManager()
Implements org. Factory method to create and return a new InstanceManager instance. |
| public Wrapper | createWrapper()
Implements org. Factory method to create and return a new Wrapper instance, of the Java implementation class appropriate for this Context implementation. |
| public void | |
| public String[] | |
| public ApplicationParameter[] | |
| public Container | findChild(String
Name of the child Container to be retrieved name)Implements org. Obtain a child Container by name. |
| public Container[] | findChildren()
Implements org. Obtain the child Containers associated with this Container. |
| public SecurityConstraint[] | |
| public ContainerListener[] | findContainerListeners()
Implements org. Obtain the container listeners associated with this Container. |
| public ErrorPage | findErrorPage(int
Error code to look up errorCode)Implements org.
|
| public ErrorPage | findErrorPage(Throwable
The exception type for which to find an ErrorPage throwable)Implements org. Find and return the ErrorPage instance for the specified exception's class, or an ErrorPage instance for the closest superclass for which there is such a definition. |
| public ErrorPage[] | |
| public FilterDef | findFilterDef(String
Filter name to look up filterName)Implements org.
|
| public FilterDef[] | |
| public FilterMap[] | |
| public String | findMimeMapping(String
Extension to map to a MIME type extension)Implements org.
|
| public String[] | |
| public String | findParameter(String
Name of the parameter to return name)Implements org.
|
| public String[] | |
| public String | findPostConstructMethod(String
Fully qualified class name clazz)Implements org. Returns the method name that is specified as post construct method for
the given class, if it exists; otherwise |
| public Map | findPostConstructMethods()
Implements org. Returns a map with keys - fully qualified class names of the classes that have post construct methods and the values are the corresponding method names. |
| public String | findPreDestroyMethod(String
Fully qualified class name clazz)Implements org. Returns the method name that is specified as pre destroy method for the
given class, if it exists; otherwise |
| public Map | findPreDestroyMethods()
Implements org. Returns a map with keys - fully qualified class names of the classes that have pre destroy methods and the values are the corresponding method names. |
| public String | findRoleMapping(String
Security role to map role)Implements org. For the given security role (as used by an application), return the corresponding role name (as defined by the underlying Realm) if there is one. |
| public boolean | findSecurityRole(String
Security role to verify role)Implements org.
|
| public String[] | |
| public String | findServletMapping(String
Pattern for which a mapping is requested pattern)Implements org.
|
| public String[] | |
| public String[] | |
| public boolean | findWelcomeFile(String
Welcome file to verify name)Implements org.
|
| public String[] | |
| public String[] | |
| public String[] | |
| public void | fireContainerEvent(String
Event type type, Object Event data data)Implements org. Notify all container event listeners that a particular event has occurred for this Container. |
| public boolean | fireRequestDestroyEvent(ServletRequest
The request object that will be passed to the listener request)Implements org. Notify all |
| public boolean | fireRequestInitEvent(ServletRequest
The request object that will be passed to the listener request)Implements org. Notify all |
| public AccessLog | getAccessLog()
Implements org. Obtain the AccessLog to use to log a request/response that is destined for this container. |
| public boolean | |
| public boolean | getAllowCasualMultipartParsing()
Implements org. Returns |
| public boolean | getAllowMultipleLeadingForwardSlashInPath()
Implements org. When returning a context path from |
| public String | getAltDDName()
Implements org. Return the alternate Deployment Descriptor name. |
| public boolean | getAlwaysAccessSession()
Implements org. If this is |
| public Object[] | getApplicationEventListeners()
Implements org. Obtain the registered application event listeners. |
| public Object[] | getApplicationLifecycleListeners()
Implements org. Obtain the registered application lifecycle listeners. |
| public Authenticator | |
| public int | getBackgroundProcessorDelay()
Implements org. Get the delay between the invocation of the backgroundProcess method on this container and its children. |
| public String | |
| public File | getCatalinaBase()
Implements org. Obtain the location of CATALINA_BASE. |
| public File | getCatalinaHome()
Implements org. Obtain the location of CATALINA_HOME. |
| public String | getCharset(Locale
The locale for which the mapped character set should be
returned locale)Implements org. Obtain the character set name to use with the given Locale. |
| public Cluster | getCluster()
Implements org. Get the Cluster for this container. |
| public URL | getConfigFile()
Implements org. Return the URL of the XML descriptor for this context. |
| public boolean | getConfigured()
Implements org. Return the "correctly configured" flag for this Context. |
| public String | getContainerSciFilter()
Implements org. Obtains the regular expression that specifies which container provided SCIs should be filtered out and not used for this context. |
| public boolean | getContextGetResourceRequiresSlash()
Implements org. If this is |
| public CookieProcessor | |
| public boolean | getCookies()
Implements org. Return the "use cookies for session ids" flag. |
| public boolean | getCreateUploadTargets()
Implements org. Will Tomcat attempt to create an upload target used by this web application if it does not exist when the web application attempts to use it? |
| public boolean | getCrossContext()
Implements org. Return the "allow crossing servlet contexts" flag. |
| public boolean | getDenyUncoveredHttpMethods()
Implements org. Return the deny-uncovered-http-methods flag for this web application. |
| public boolean | getDispatchersUseEncodedPaths()
Implements org. Are paths used in calls to obtain a request dispatcher expected to be encoded? |
| public boolean | getDispatcherWrapsSameObject()
Implements org. If this is |
| public String | getDisplayName()
Implements org. Return the display name of this web application. |
| public boolean | getDistributable()
Implements org. Get the distributable flag for this web application. |
| public String | getDocBase()
Implements org. Obtain the document root for this Context. |
| protected String | getDomainInternal()
Implements abstract org. Method implemented by sub-classes to identify the domain in which MBeans should be registered. |
| public int | |
| public int | |
| public String | getEncodedPath()
Implements org. Return the URL encoded context path |
| public boolean | |
| public boolean | getIgnoreAnnotations()
Implements org. Determine if annotations parsing is currently disabled |
| public InstanceManager | |
| public JarScanner | getJarScanner()
Implements org. Get the Jar Scanner to be used to scan for JAR resources for this context. |
| public JspConfigDescriptor | |
| public Loader | |
| public boolean | getLogEffectiveWebXml()
Implements org. Should the effective web.xml for this context be logged on context start? |
| public Log | getLogger()
Implements org. Obtain the log to which events for this container should be logged. |
| public LoginConfig | |
| public String | getLogName()
Implements org. Return the logger name that the container will use. |
| public Manager | |
| public boolean | getMapperContextRootRedirectEnabled()
Implements org. Determines if requests for a web application context root will be redirected (adding a trailing slash) by the Mapper. |
| public boolean | getMapperDirectoryRedirectEnabled()
Implements org. Determines if requests for a directory will be redirected (adding a trailing slash) by the Mapper. |
| public String | getMBeanKeyProperties()
Implements org. Calculate the key properties string to be added to an object's
|
| public String | getName()
Implements org. Return a name string (suitable for use by humans) that describes this Container. |
| public NamingResourcesImpl | |
| public Object | |
| protected String | getObjectNameKeyProperties()
Implements abstract org. Allow sub-classes to specify the key properties component of the
|
| public boolean | |
| public boolean | |
| public Container | |
| public ClassLoader | getParentClassLoader()
Implements org. Get the parent class loader. |
| public String | |
| public boolean | getPaused()
Implements org. Is this Context paused whilst it is reloaded? |
| public Pipeline | getPipeline()
Implements org. Return the Pipeline object that manages the Valves associated with this Container. |
| public boolean | |
| public boolean | |
| public String | |
| public Realm | getRealm()
Implements org. Obtain the Realm with which this Container is associated. |
| public String | getRealPath(String
The path to the desired resource path)Implements org.
|
| public boolean | |
| public String | getRequestCharacterEncoding()
Implements org. Get the default request body encoding for this web application. |
| public String | getResourceOnlyServlets()
Implements org. Obtains the list of Servlets that expect a resource to be present. |
| public WebResourceRoot | |
| public String | getResponseCharacterEncoding()
Implements org. Get the default response body encoding for this web application. |
| public boolean | |
| public ServletContext | |
| public String | getSessionCookieDomain()
Implements org. Gets the domain to use for session cookies. |
| public String | getSessionCookieName()
Implements org. Gets the name to use for session cookies. |
| public String | getSessionCookiePath()
Implements org. Gets the path to use for session cookies. |
| public boolean | getSessionCookiePathUsesTrailingSlash()
Implements org. Is a / added to the end of the session cookie path to ensure browsers, particularly IE, don't send a session cookie for context /foo with requests intended for context /foobar. |
| public int | |
| public int | getStartStopThreads()
Implements org. Obtain the number of threads available for starting and stopping any children associated with this container. |
| public boolean | getSwallowAbortedUploads()
Implements org. Returns |
| public boolean | |
| public ThreadBindingListener | |
| public boolean | getTldValidation()
Implements org. Will the parsing of *.tld files for this Context be performed by a validating parser? |
| public boolean | |
| public boolean | getUseHttpOnly()
Implements org. Gets the value of the use HttpOnly cookies for session cookies flag. |
| public boolean | getUsePartitioned()
Implements org. Should the |
| public boolean | getUseRelativeRedirects()
Implements org. Will HTTP 1.1 and later location headers generated by a call to
|
| public boolean | getValidateClientProvidedNewSessionId()
Implements org. Will client provided session IDs be validated (see |
| public String | |
| public String | |
| public boolean | getXmlBlockExternal()
Implements org. Will the parsing of web.xml, web-fragment.xml, *.tld, *.jspx, *.tagx and tagplugin.xml files for this Context block the use of external entities? |
| public boolean | getXmlNamespaceAware()
Implements org. Will the parsing of web.xml and web-fragment.xml files for this Context be performed by a namespace aware parser? |
| public boolean | getXmlValidation()
Implements org. Will the parsing of web.xml and web-fragment.xml files for this Context be performed by a validating parser? |
| public void | |
| public boolean | isResourceOnlyServlet(String
Name of the Servlet (as per web.xml) to check servletName)Implements org. Checks the named Servlet to see if it expects a resource to be present. |
| public boolean | isServlet22()
Implements org. Is this context using version 2.2 of the Servlet spec? |
| public void | logAccess(Request
Request (associated with the response) to log request, Response Response (associated with the request) to log response, long Time taken to process the request/response in
milliseconds (use 0 if not known) time, boolean Flag that indicates that the request/response should
be logged in the engine's default access log useDefault)Implements org. Log a request/response that was destined for this container but has been handled earlier in the processing chain so that the request/response still appears in the correct access logs. |
| public void | reload()
Implements org. Reload this web application, if reloading is supported. |
| public void | removeApplicationListener(String
Java class name of the listener to be removed listener)Implements org. Remove the specified application listener class from the set of listeners for this application. |
| public void | removeApplicationParameter(String
Name of the application parameter to remove name)Implements org. Remove the application parameter with the specified name from the set for this application. |
| public void | removeChild(Container
Existing child Container to be removed child)Implements org. Remove an existing child Container from association with this parent Container. |
| public void | removeConstraint(SecurityConstraint
Constraint to be removed constraint)Implements org. Remove the specified security constraint from this web application. |
| public void | removeContainerListener(ContainerListener
The listener to remove listener)Implements org. Remove a container event listener from this component. |
| public void | removeErrorPage(ErrorPage
The error page definition to be removed errorPage)Implements org. Remove the error page for the specified error code or Java language exception, if it exists; otherwise, no action is taken. |
| public void | removeFilterDef(FilterDef
Filter definition to be removed filterDef)Implements org. Remove the specified filter definition from this Context, if it exists; otherwise, no action is taken. |
| public void | removeFilterMap(FilterMap
The filter mapping to be removed filterMap)Implements org. Remove a filter mapping from this Context. |
| public void | removeMimeMapping(String
Extension to remove the mapping for extension)Implements org. Remove the MIME mapping for the specified extension, if it exists; otherwise, no action is taken. |
| public void | removeParameter(String
Name of the parameter to remove name)Implements org. Remove the context initialization parameter with the specified name, if it exists; otherwise, no action is taken. |
| public void | removePostConstructMethod(String
Fully qualified class name clazz)Implements org. Removes the post construct method definition for the given class, if it exists; otherwise, no action is taken. |
| public void | removePreDestroyMethod(String
Fully qualified class name clazz)Implements org. Removes the pre destroy method definition for the given class, if it exists; otherwise, no action is taken. |
| public void | removePropertyChangeListener(PropertyChangeListener
The listener to remove listener)Implements org. Remove a property change listener from this component. |
| public void | removeRoleMapping(String
Security role (as used in the application) to remove role)Implements org. Remove any security role reference for the specified name |
| public void | removeSecurityRole(String
Security role to remove role)Implements org. Remove any security role with the specified name. |
| public void | removeServletMapping(String
URL pattern of the mapping to remove pattern)Implements org. Remove any servlet mapping for the specified pattern, if it exists; otherwise, no action is taken. |
| public void | removeWatchedResource(String
Name of the watched resource to be removed name)Implements org. Remove the specified watched resource name from the list associated with this Context. |
| public void | removeWelcomeFile(String
Name of the welcome file to be removed name)Implements org. Remove the specified welcome file name from the list recognized by this Context. |
| public void | removeWrapperLifecycle(String
Class name of a LifecycleListener class to be removed listener)Implements org. Remove a class name from the set of LifecycleListener classes that will be added to newly created Wrappers. |
| public void | removeWrapperListener(String
Class name of a ContainerListener class to be removed listener)Implements org. Remove a class name from the set of ContainerListener classes that will be added to newly created Wrappers. |
| public void | setAddWebinfClassesResources(boolean
The new value for the flag addWebinfClassesResources)Implements org. Sets the flag that indicates if /WEB-INF/classes should be treated like an exploded JAR and JAR resources made available as if they were in a JAR. |
| public void | setAllowCasualMultipartParsing(boolean
true to allow such
casual parsing, false otherwise.Implements org. Set to |
| public void | setAllowMultipleLeadingForwardSlashInPath(boolean
The new value for the flag allowMultipleLeadingForwardSlashInPath)Implements org. Configure if, when returning a context path from |
| public void | setAltDDName(String
The new name altDDName)Implements org. Set an alternate Deployment Descriptor name. |
| public void | setAlwaysAccessSession(boolean
the new flag value alwaysAccessSession)Implements org. Set the session access behavior. |
| public void | setApplicationEventListeners(Object[]
The set of instantiated listener objects. listeners)Implements org. Store the set of initialized application event listener objects, in the order they were specified in the web application deployment descriptor, for this application. |
| public void | setApplicationLifecycleListeners(Object[]
The set of instantiated listener objects. listeners)Implements org. Store the set of initialized application lifecycle listener objects, in the order they were specified in the web application deployment descriptor, for this application. |
| public void | setBackgroundProcessorDelay(int
The delay in seconds between the invocation of
backgroundProcess methods delay)Implements org. Set the delay between the invocation of the execute method on this container and its children. |
| public void | setCluster(Cluster
the Cluster with which this Container is associated. cluster)Implements org. Set the Cluster with which this Container is associated. |
| public void | setConfigFile(URL
The URL of the XML descriptor for this context. configFile)Implements org. Set the URL of the XML descriptor for this context. |
| public void | setConfigured(boolean
The new correctly configured flag configured)Implements org. Set the "correctly configured" flag for this Context. |
| public void | setContainerSciFilter(String
The regular expression against which the fully
qualified class name of each container provided
SCI should be checked containerSciFilter)Implements org. Sets the regular expression that specifies which container provided SCIs should be filtered out and not used for this context. |
| public void | setContextGetResourceRequiresSlash(boolean
the new flag value contextGetResourceRequiresSlash)Implements org. Allow using |
| public void | setCookieProcessor(CookieProcessor
The new cookie processor cookieProcessor)Implements org. Sets the |
| public void | setCookies(boolean
The new flag cookies)Implements org. Set the "use cookies for session ids" flag. |
| public void | setCreateUploadTargets(boolean
true if Tomcat should attempt to
create the upload target, otherwise falseImplements org. Configure whether Tomcat will attempt to create an upload target used by this web application if it does not exist when the web application attempts to use it. |
| public void | setCrossContext(boolean
The new cross contexts flag crossContext)Implements org. Set the "allow crossing servlet contexts" flag. |
| public void | setDenyUncoveredHttpMethods(boolean
The new deny-uncovered-http-methods flag denyUncoveredHttpMethods)Implements org. Set the deny-uncovered-http-methods flag for this web application. |
| public void | setDispatchersUseEncodedPaths(boolean
true to use encoded paths,
otherwise falseImplements org. Are paths used in calls to obtain a request dispatcher expected to be encoded? |
| public void | setDispatcherWrapsSameObject(boolean
the new flag value dispatcherWrapsSameObject)Implements org. Allow disabling the object wrap check in the request dispatcher. |
| public void | setDisplayName(String
The new display name displayName)Implements org. Set the display name of this web application. |
| public void | setDistributable(boolean
The new distributable flag distributable)Implements org. Set the distributable flag for this web application. |
| public void | setDocBase(String
The new document root docBase)Implements org. Set the document root for this Context. |
| public void | setEffectiveMajorVersion(int
Set the version number major)Implements org. Set the effective major version of the Servlet spec used by this context. |
| public void | setEffectiveMinorVersion(int
Set the version number minor)Implements org. Set the effective minor version of the Servlet spec used by this context. |
| public void | setFireRequestListenersOnForwards(boolean
true to fire request listeners when forwardingImplements org. Configure whether or not requests listeners will be fired on forwards for this Context. |
| public void | setIgnoreAnnotations(boolean
The boolean on the annotations parsing ignoreAnnotations)Implements org. Set the boolean on the annotations parsing for this web application. |
| public void | setInstanceManager(InstanceManager
the new instance manager instance instanceManager)Implements org. Set the instance manager associated with this context. |
| public void | setJarScanner(JarScanner
The Jar Scanner to be used for this context. jarScanner)Implements org. Set the Jar Scanner to be used to scan for JAR resources for this context. |
| public void | setJspConfigDescriptor(JspConfigDescriptor
the new JSP configuration descriptor)Implements org. Set the JspConfigDescriptor for this context. |
| public void | setLoader(Loader
The newly associated loader loader)Implements org. Set the Loader with which this Context is associated. |
| public void | setLogEffectiveWebXml(boolean
set to logEffectiveWebXml)true to log the complete
web.xml that will be used for the webappImplements org. Set whether or not the effective web.xml for this context should be logged on context start. |
| public void | setLoginConfig(LoginConfig
The new login configuration config)Implements org. Set the login configuration descriptor for this web application. |
| public void | setManager(Manager
The newly associated Manager manager)Implements org. Set the Manager with which this Context is associated. |
| public void | setMapperContextRootRedirectEnabled(boolean
Should the redirects be enabled? mapperContextRootRedirectEnabled)Implements org. If enabled, requests for a web application context root will be redirected (adding a trailing slash) by the Mapper. |
| public void | setMapperDirectoryRedirectEnabled(boolean
Should the redirects be enabled? mapperDirectoryRedirectEnabled)Implements org. If enabled, requests for a directory will be redirected (adding a trailing slash) by the Mapper. |
| public void | setName(String
New name of this container name)Implements org. Set a name string (suitable for use by humans) that describes this Container. |
| public void | setNamingResources(NamingResourcesImpl
The new naming resources namingResources)Implements org. Set the naming resources for this web application. |
| public void | setOverride(boolean
The new override flag override)Implements org. Set the override flag for this web application. |
| public void | setParallelAnnotationScanning(boolean
new parallel annotation scanning flag parallelAnnotationScanning)Implements org. Set the parallel annotation scanning value. |
| public void | setParent(Container
Container to which this Container is being added
as a child parent)Implements org. Set the parent Container to which this Container is being added as a child. |
| public void | setParentClassLoader(ClassLoader
The new parent class loader parent)Implements org. Set the parent class loader for this component. |
| public void | setPath(String
The new context path path)Implements org. Set the context path for this web application. |
| public void | setPreemptiveAuthentication(boolean
true to perform authentication even outside
security constraintsImplements org. Configures if a user presents authentication credentials, whether the context will process them when the request is for a non-protected resource. |
| public void | setPrivileged(boolean
The new privileged flag privileged)Implements org. Set the privileged flag for this web application. |
| public void | setPublicId(String
The public identifier publicId)Implements org. Set the public identifier of the deployment descriptor DTD that is currently being parsed. |
| public void | setRealm(Realm
The newly associated Realm realm)Implements org. Set the Realm with which this Container is associated. |
| public void | setReloadable(boolean
The new reloadable flag reloadable)Implements org. Set the reloadable flag for this web application. |
| public void | setRequestCharacterEncoding(String
The default encoding encoding)Implements org. Set the default request body encoding for this web application. |
| public void | setResourceOnlyServlets(String
The Servlet names comma separated list resourceOnlyServlets)Implements org. Sets the (comma separated) list of Servlets that expect a resource to be present. |
| public void | setResources(WebResourceRoot
The newly associated Resources resources)Implements org. Set the Resources object with which this Context is associated. |
| public void | setResponseCharacterEncoding(String
The default encoding encoding)Implements org. Set the default response body encoding for this web application. |
| public void | setSendRedirectBody(boolean
true to send a response body for redirectsImplements org. Configures if a response body is included when a redirect response is sent to the client. |
| public void | setSessionCookieDomain(String
The domain to use sessionCookieDomain)Implements org. Sets the domain to use for session cookies. |
| public void | setSessionCookieName(String
The name to use sessionCookieName)Implements org. Sets the name to use for session cookies. |
| public void | setSessionCookiePath(String
The path to use sessionCookiePath)Implements org. Sets the path to use for session cookies. |
| public void | setSessionCookiePathUsesTrailingSlash(boolean
true if the
slash is should be added,
otherwise falseImplements org. Configures if a / is added to the end of the session cookie path to ensure browsers, particularly IE, don't send a session cookie for context /foo with requests intended for context /foobar. |
| public void | setSessionTimeout(int
The new default session timeout timeout)Implements org. Set the default session timeout (in minutes) for this web application. |
| public void | setStartStopThreads(int
The new number of threads to be used startStopThreads)Implements org. Sets the number of threads available for starting and stopping any children associated with this container. |
| public void | setSwallowAbortedUploads(boolean
false to disable
swallowing, true otherwise (default).Implements org. Set to |
| public void | setSwallowOutput(boolean
The new value swallowOutput)Implements org. Set the value of the swallowOutput flag. |
| public void | setThreadBindingListener(ThreadBindingListener
Set the listener that will receive
notifications when entering and exiting the application scope threadBindingListener)Implements org. Get the associated ThreadBindingListener. |
| public void | setTldValidation(boolean
true to enable xml validation tldValidation)Implements org. Controls whether the parsing of *.tld files for this Context will be performed by a validating parser. |
| public void | setUseBloomFilterForArchives(boolean
The new fast class path scan flag useBloomFilterForArchives)Implements org. Set bloom filter flag value. |
| public void | setUseHttpOnly(boolean
Set to useHttpOnly)true to use HttpOnly cookies
for session cookiesImplements org. Sets the use HttpOnly cookies for session cookies flag. |
| public void | setUsePartitioned(boolean
true if the Partitioned attribute should be added to session cookies
created for this web application, otherwise falseImplements org. Configure whether the |
| public void | setUseRelativeRedirects(boolean
true to use relative redirects and
false to use absolute redirectsImplements org. Controls whether HTTP 1.1 and later location headers generated by a call
to |
| public void | setValidateClientProvidedNewSessionId(boolean
true if validation should be appliedImplements org. When a client provides the ID for a new session, should that ID be validated? |
| public void | setWebappVersion(String
The webapp version associated with the context,
which should be unique webappVersion)Implements org. Set the version of this web application - used to differentiate different versions of the same web application when using parallel deployment. |
| public void | setWrapperClass(String
The new wrapper class wrapperClass)Implements org. Set the Java class name of the Wrapper implementation used for servlets registered in this Context. |
| public void | setXmlBlockExternal(boolean
true to block external entities xmlBlockExternal)Implements org. Controls whether the parsing of web.xml, web-fragment.xml, *.tld, *.jspx, *.tagx and tagplugin.xml files for this Context will block the use of external entities. |
| public void | setXmlNamespaceAware(boolean
true to enable namespace awareness xmlNamespaceAware)Implements org. Controls whether the parsing of web.xml and web-fragment.xml files for this Context will be performed by a namespace aware parser. |
| public void | setXmlValidation(boolean
true to enable xml validation xmlValidation)Implements org. Controls whether the parsing of web.xml and web-fragment.xml files for this Context will be performed by a validating parser. |
| protected void | startInternal()
Implements abstract org. Sub-classes must ensure that the state is changed to
|
| protected void | stopInternal()
Implements abstract org. Sub-classes must ensure that the state is changed to
|
| public String | |
| public void | unbind(boolean
Should a usePrivilegedAction, ClassLoader java. be used when
setting the current thread context class loader?The class loader to restore as the thread context class loader originalClassLoader)Implements org. Restore the current thread context class loader to the original class
loader in used before |