public interface Context extends Container
The parent Container attached to a Context is generally a Host, but may be some other implementation, or may be omitted if it is not necessary.
The child containers attached to a Context are generally implementations of Wrapper (representing individual servlet definitions).
Modifier and Type | Field and Description |
---|---|
static String |
RELOAD_EVENT
The LifecycleEvent type sent when a context is reloaded.
|
ADD_CHILD_EVENT, ADD_MAPPER_EVENT, ADD_VALVE_EVENT, REMOVE_CHILD_EVENT, REMOVE_MAPPER_EVENT, REMOVE_VALVE_EVENT
Modifier and Type | Method and Description |
---|---|
void |
addApplicationListener(String listener)
Adds the Listener with the given class name that is declared in the
deployment descriptor to the set of Listeners configured for this
application.
|
void |
addApplicationParameter(ApplicationParameter parameter)
Add a new application parameter for this application.
|
void |
addConstraint(SecurityConstraint constraint)
Add a security constraint to the set for this web application.
|
void |
addEjb(ContextEjb ejb)
Add an EJB resource reference for this web application.
|
void |
addEnvironment(ContextEnvironment environment)
Add an environment entry for this web application.
|
void |
addErrorPage(ErrorPage errorPage)
Add an error page for the specified error or Java exception.
|
void |
addFilterDef(FilterDef filterDef)
Add a filter definition to this Context.
|
void |
addFilterMap(FilterMap filterMap)
Add a filter mapping to this Context.
|
void |
addInstanceListener(String listener)
Add the classname of an InstanceListener to be added to each
Wrapper appended to this Context.
|
void |
addJspMapping(String pattern)
Add the given URL pattern as a jsp-property-group.
|
void |
addLocaleEncodingMappingParameter(String locale,
String encoding)
Add a Locale Encoding Mapping (see Sec 5.4 of Servlet spec 2.4)
|
void |
addLocalEjb(ContextLocalEjb ejb)
Add a local EJB resource reference for this web application.
|
void |
addMimeMapping(String extension,
String mimeType)
Add a new MIME mapping, replacing any existing mapping for
the specified extension.
|
void |
addParameter(String name,
String value)
Add a new context initialization parameter, replacing any existing
value for the specified name.
|
void |
addResource(ContextResource resource)
Add a resource reference for this web application.
|
void |
addResourceEnvRef(String name,
String type)
Add a resource environment reference for this web application.
|
void |
addResourceLink(ContextResourceLink resourceLink)
Add a resource link for this web application.
|
void |
addRoleMapping(String role,
String link)
Add a security role reference for this web application.
|
void |
addSecurityRole(String role)
Add a new security role for this web application.
|
javax.servlet.ServletRegistration.Dynamic |
addServlet(String servletName,
javax.servlet.Servlet instance,
Map<String,String> initParams)
Adds the given servlet instance with the given name to this servlet
context and initializes it.
|
javax.servlet.ServletRegistration.Dynamic |
addServlet(String servletName,
javax.servlet.Servlet instance,
Map<String,String> initParams,
String... urlPatterns)
Adds the given servlet instance with the given name and URL patterns
to this servlet context, and initializes it.
|
void |
addServletMapping(String pattern,
String name)
Adds the given servlet mapping to this Context, overriding any
existing mapping for the specified pattern.
|
void |
addWatchedResource(String name)
Add a resource which will be watched for reloading by the host auto
deployer.
|
void |
addWelcomeFile(String name)
Add a new welcome file to the set recognized by this Context.
|
void |
addWrapperLifecycle(String listener)
Add the classname of a LifecycleListener to be added to each
Wrapper appended to this Context.
|
void |
addWrapperListener(String listener)
Add the classname of a ContainerListener to be added to each
Wrapper appended to this Context.
|
Wrapper |
createWrapper()
Factory method to create and return a new Wrapper instance, of
the Java implementation class appropriate for this Context
implementation.
|
List<ApplicationParameter> |
findApplicationParameters()
Gets the (possibly empty) list of application parameters for this
application.
|
ContextEjb |
findEjb(String name)
Return the EJB resource reference with the specified name, if any;
otherwise, return
null . |
ContextEjb[] |
findEjbs()
Return the defined EJB resource references for this application.
|
ContextEnvironment |
findEnvironment(String name)
Return the environment entry with the specified name, if any;
otherwise, return
null . |
ContextEnvironment[] |
findEnvironments()
Return the set of defined environment entries for this web
application.
|
ErrorPage |
findErrorPage(int errorCode)
Return the error page entry for the specified HTTP error code,
if any; otherwise return
null . |
ErrorPage |
findErrorPage(String exceptionType)
Return the error page entry for the specified Java exception type,
if any; otherwise return
null . |
FilterDef |
findFilterDef(String filterName)
Return the filter definition for the specified filter name, if any;
otherwise return
null . |
FilterDef[] |
findFilterDefs()
Return the set of defined filters for this Context.
|
List<FilterMap> |
findFilterMaps()
Gets the (possibly empty) list of filter mappings for this Context.
|
List<String> |
findInstanceListeners()
Gets the (possibly empty) list of InstanceListener classes that
will be added to newly created Wrappers automatically.
|
ContextLocalEjb |
findLocalEjb(String name)
Return the local EJB resource reference with the specified name, if any;
otherwise, return
null . |
ContextLocalEjb[] |
findLocalEjbs()
Return the defined local EJB resource references for this application.
|
String |
findMimeMapping(String extension)
Return the MIME type to which the specified extension is mapped,
if any; otherwise return
null . |
String[] |
findMimeMappings()
Return the extensions for which MIME mappings are defined.
|
String |
findParameter(String name)
Return the value for the specified context initialization
parameter name, if any; otherwise return
null . |
String[] |
findParameters()
Return the names of all defined context initialization parameters
for this Context.
|
ContextResource |
findResource(String name)
Return the resource reference with the specified name, if any;
otherwise return
null . |
String |
findResourceEnvRef(String name)
Return the resource environment reference type for the specified
name, if any; otherwise return
null . |
String[] |
findResourceEnvRefs()
Return the set of resource environment reference names for this
web application.
|
ContextResourceLink |
findResourceLink(String name)
Return the resource link with the specified name, if any;
otherwise return
null . |
ContextResourceLink[] |
findResourceLinks()
Return the defined resource links for this application.
|
ContextResource[] |
findResources()
Return the defined resource references for this application.
|
String |
findRoleMapping(String role)
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.
|
String |
findServletMapping(String pattern)
Return the servlet name mapped by the specified pattern (if any);
otherwise return
null . |
String[] |
findServletMappings()
Return the patterns of all defined servlet mappings for this
Context.
|
ErrorPage |
findStatusPage(int status)
Return the context-relative URI of the error page for the specified
HTTP status code, if any; otherwise return
null . |
int[] |
findStatusPages()
Return the set of HTTP status codes for which error pages have
been specified.
|
boolean |
findWelcomeFile(String name)
Return
true if the specified welcome file is defined
for this Context; otherwise return false . |
String[] |
findWelcomeFiles()
Return the set of welcome files defined for this Context.
|
List<String> |
findWrapperLifecycles()
Gets the (possibly empty) list of LifecycleListener classes that
will be added to newly created Wrappers automatically.
|
List<String> |
findWrapperListeners()
Gets the (possibly empty) list of ContainerListener classes that
will be added to newly created Wrappers automatically.
|
void |
fireRequestDestroyedEvent(javax.servlet.ServletRequest request)
Notifies all ServletRequestListener instances configured for this Context
of the requestDestroyed event.
|
void |
fireRequestInitializedEvent(javax.servlet.ServletRequest request)
Notifies all ServletRequestListener instances configured for this Context
of the requestInitialized event.
|
String |
getAdHocServletName(String path)
Returns the name of the ad-hoc servlet responsible for servicing the
given path.
|
boolean |
getAllowRelativeRedirect()
Return whether this context allows sendRedirect() to redirect
to a relative URL.
|
String |
getAltDDName()
Return the alternate Deployment Descriptor name.
|
List<EventListener> |
getApplicationEventListeners() |
Auditor[] |
getAuditors()
Get Auditors associated with this context, if any.
|
Authenticator |
getAuthenticator()
Gets the Authenticator of this Context.
|
boolean |
getAvailable()
Return the application available flag for this Context.
|
CharsetMapper |
getCharsetMapper()
Return the Locale to character set mapper for this Context.
|
String |
getConfigFile()
Return the path to a file to save this Context information.
|
boolean |
getConfigured()
Return the "correctly configured" flag for this Context.
|
List<SecurityConstraint> |
getConstraints()
Gets the (possibly empty) list of security constraints defined for
this web application.
|
boolean |
getCookies()
Return the "use cookies for session ids" flag.
|
boolean |
getCrossContext()
Return the "allow crossing servlet contexts" flag.
|
ErrorPage |
getDefaultErrorPage()
Gets the default error page of this context.
|
String |
getDisplayName()
Return the display name of this web application.
|
boolean |
getDistributable()
Return the distributable flag for this web application.
|
String |
getDocBase()
Return the document root for this Context.
|
String |
getEncodedPath()
Return the URL encoded context path, using UTF-8.
|
LoginConfig |
getLoginConfig()
Return the login configuration descriptor for this web application.
|
org.glassfish.grizzly.http.server.util.Mapper |
getMapper()
Get the request dispatcher mapper.
|
NamingResources |
getNamingResources()
Return the naming resources associated with this web application.
|
boolean |
getOverride()
Return the override flag for this web application.
|
String |
getPath()
Return the context path for this web application.
|
boolean |
getPrivileged()
Return the privileged flag for this web application.
|
String |
getPublicId()
Return the public identifier of the deployment descriptor DTD that is
currently being parsed.
|
boolean |
getReloadable()
Return the reloadable flag for this web application.
|
boolean |
getReuseSessionID()
Return the "reuse session IDs when creating sessions" flag
|
javax.servlet.ServletContext |
getServletContext()
Return the servlet context for which this Context is a facade.
|
javax.servlet.SessionCookieConfig |
getSessionCookieConfig() |
String |
getSessionCookieName() |
String |
getSessionParameterName() |
int |
getSessionTimeout()
Return the default session timeout (in minutes) for this
web application.
|
boolean |
getTldNamespaceAware()
Get the server.xml
|
boolean |
getTldValidation()
Get the server.xml
|
List<String> |
getWatchedResources()
Gets the watched resources defined for this web application.
|
boolean |
getXmlNamespaceAware()
Get the server.xml
|
boolean |
getXmlValidation()
Get the server.xml
|
boolean |
hasAdHocPaths()
Indicates whether this web module contains any ad-hoc paths.
|
boolean |
hasConstraints()
Checks whether this web application has any security constraints
defined.
|
boolean |
hasSecurityRole(String role)
Checks if the given security role is defined for this application.
|
boolean |
hasWatchedResources()
Checks whether this web application has any watched resources
defined.
|
boolean |
isEnableURLRewriting()
Checks whether the rewriting of URLs with the jsessionids of
HTTP sessions belonging to this context is enabled or not.
|
boolean |
isJsfApplication()
Return
true if this context contains the JSF servlet. |
boolean |
isSecurePagesWithPragma()
Indicates whether the Pragma and Cache-Control headers will be set
to "No-cache" if proxy caching has been disabled.
|
void |
reload()
Reload this web application, if reloading is supported.
|
void |
removeApplicationParameter(String name)
Remove the application parameter with the specified name from
the set for this application.
|
void |
removeConstraints()
Removes any security constraints from this web application.
|
void |
removeEjb(String name)
Remove any EJB resource reference with the specified name.
|
void |
removeEnvironment(String name)
Remove any environment entry with the specified name.
|
void |
removeErrorPages()
Removes any error page declarations from this Context.
|
void |
removeFilterDef(FilterDef filterDef)
Remove the specified filter definition from this Context, if it exists;
otherwise, no action is taken.
|
void |
removeFilterMaps()
Removes any filter mappings from this Context.
|
void |
removeInstanceListener(String listener)
Remove a class name from the set of InstanceListener classes that
will be added to newly created Wrappers.
|
void |
removeLocalEjb(String name)
Remove any local EJB resource reference with the specified name.
|
void |
removeMimeMapping(String extension)
Remove the MIME mapping for the specified extension, if it exists;
otherwise, no action is taken.
|
void |
removeParameter(String name)
Remove the context initialization parameter with the specified
name, if it exists; otherwise, no action is taken.
|
void |
removeResource(String name)
Remove any resource reference with the specified name.
|
void |
removeResourceEnvRef(String name)
Remove any resource environment reference with the specified name.
|
void |
removeResourceLink(String name)
Remove any resource link with the specified name.
|
void |
removeRoleMapping(String role)
Remove any security role reference for the specified name
|
void |
removeSecurityRoles()
Removes any security roles defined for this application.
|
void |
removeServletMapping(String pattern)
Remove any servlet mapping for the specified pattern, if it exists;
otherwise, no action is taken.
|
void |
removeWatchedResources()
Clears any watched resources defined for this web application.
|
void |
removeWelcomeFiles() |
void |
removeWrapperLifecycles()
Removes any Wrapper lifecycle listeners from this Context
|
void |
removeWrapperListeners()
Removes any Wrapper listeners from this Context
|
void |
setAllowRelativeRedirect(boolean allowRelativeURLs)
Set whether this context allows sendRedirect() to redirect
to a relative URL.
|
void |
setAltDDName(String altDDName)
Set an alternate Deployment Descriptor name.
|
void |
setAuditors(Auditor[] auditor)
Set the Auditors associated with this context.
|
void |
setAvailable(boolean available)
Set the application available flag for this Context.
|
void |
setCharsetMapper(CharsetMapper mapper)
Set the Locale to character set mapper for this Context.
|
void |
setConfigFile(String configFile)
Set the path to a file to save this Context information.
|
void |
setConfigured(boolean configured)
Set the "correctly configured" flag for this Context.
|
void |
setCookies(boolean cookies)
Set the "use cookies for session ids" flag.
|
void |
setCrossContext(boolean crossContext)
Set the "allow crossing servlet contexts" flag.
|
void |
setDisplayName(String displayName)
Set the display name of this web application.
|
void |
setDistributable(boolean distributable)
Set the distributable flag for this web application.
|
void |
setDocBase(String docBase)
Set the document root for this Context.
|
void |
setEnableURLRewriting(boolean enableURLRewriting)
Enables or disables the rewriting of URLs with the jsessionids of
HTTP sessions belonging to this context.
|
void |
setLoginConfig(LoginConfig config)
Set the login configuration descriptor for this web application.
|
void |
setNamingResources(NamingResources namingResources)
Set the naming resources for this web application.
|
void |
setOverride(boolean override)
Set the override flag for this web application.
|
void |
setPath(String path)
Set the context path for this web application.
|
void |
setPrivileged(boolean privileged)
Set the privileged flag for this web application.
|
void |
setPublicId(String publicId)
Set the public identifier of the deployment descriptor DTD that is
currently being parsed.
|
void |
setReloadable(boolean reloadable)
Set the reloadable flag for this web application.
|
void |
setReuseSessionID(boolean reuse)
Set the "reuse session IDs when creating sessions" flag
|
void |
setSecurePagesWithPragma(boolean securePagesWithPragma)
Sets the securePagesWithPragma property of this Context.
|
void |
setSessionTimeout(int timeout)
Set the default session timeout (in minutes) for this
web application.
|
void |
setTldNamespaceAware(boolean tldNamespaceAware)
Set the namespace aware feature of the XML parser used when
parsing xml instances.
|
void |
setTldValidation(boolean tldValidation)
Set the validation feature of the XML parser used when
parsing tlds files.
|
void |
setXmlNamespaceAware(boolean xmlNamespaceAware)
Set the namespace aware feature of the XML parser used when
parsing xml instances.
|
void |
setXmlValidation(boolean xmlValidation)
Set the validation feature of the XML parser used when
parsing xml instances.
|
addChild, addContainerListener, addPropertyChangeListener, backgroundProcess, findChild, findChildren, findContainerListeners, fireContainerEvent, getBackgroundProcessorDelay, getInfo, getLoader, getLogger, getManager, getMappingObject, getName, getParent, getParentClassLoader, getPipeline, getRealm, getResources, hasCustomPipeline, invoke, isCheckIfRequestIsSecure, removeChild, removeContainerListener, removePropertyChangeListener, setBackgroundProcessorDelay, setCheckIfRequestIsSecure, setLoader, setLogger, setManager, setName, setParent, setParentClassLoader, setRealm, setResources
static final String RELOAD_EVENT
List<EventListener> getApplicationEventListeners()
boolean getAvailable()
void setAvailable(boolean available)
available
- The new application available flagCharsetMapper getCharsetMapper()
void setCharsetMapper(CharsetMapper mapper)
mapper
- The new mapperString getConfigFile()
void setConfigFile(String configFile)
configFile
- The path to a file to save this Context information.boolean getConfigured()
void setConfigured(boolean configured)
configured
- The new correctly configured flagboolean getCookies()
void setCookies(boolean cookies)
cookies
- The new flagString getSessionCookieName()
javax.servlet.SessionCookieConfig getSessionCookieConfig()
String getSessionParameterName()
boolean isEnableURLRewriting()
void setEnableURLRewriting(boolean enableURLRewriting)
enableURLRewriting
- true if the rewriting of URLs with the
jsessionids of HTTP sessions belonging to this context should be
enabled, false otherwiseboolean getCrossContext()
String getAltDDName()
void setAltDDName(String altDDName)
void setCrossContext(boolean crossContext)
crossContext
- The new cross contexts flagString getDisplayName()
void setDisplayName(String displayName)
displayName
- The new display nameboolean getDistributable()
void setDistributable(boolean distributable)
distributable
- The new distributable flagString getDocBase()
void setDocBase(String docBase)
docBase
- The new document rootString getEncodedPath()
LoginConfig getLoginConfig()
void setLoginConfig(LoginConfig config)
config
- The new login configurationorg.glassfish.grizzly.http.server.util.Mapper getMapper()
NamingResources getNamingResources()
void setNamingResources(NamingResources namingResources)
namingResources
- The new naming resourcesString getPath()
void setPath(String path)
path
- The new context pathString getPublicId()
void setPublicId(String publicId)
publicId
- The public identifierboolean getReloadable()
void setReloadable(boolean reloadable)
reloadable
- The new reloadable flagboolean getOverride()
void setOverride(boolean override)
override
- The new override flagboolean getPrivileged()
void setPrivileged(boolean privileged)
privileged
- The new privileged flagjavax.servlet.ServletContext getServletContext()
int getSessionTimeout()
void setSessionTimeout(int timeout)
timeout
- The new default session timeoutAuditor[] getAuditors()
void setAuditors(Auditor[] auditor)
auditor
- array of Auditor objectsvoid addApplicationListener(String listener)
listener
- the fully qualified class name of the Listenervoid addApplicationParameter(ApplicationParameter parameter)
parameter
- The new application parametervoid addConstraint(SecurityConstraint constraint)
void addEjb(ContextEjb ejb)
ejb
- New EJB resource referencevoid addEnvironment(ContextEnvironment environment)
environment
- New environment entryvoid addErrorPage(ErrorPage errorPage)
errorPage
- The error page definition to be addedvoid addFilterDef(FilterDef filterDef)
filterDef
- The filter definition to be addedvoid addFilterMap(FilterMap filterMap)
filterMap
- The filter mapping to be addedvoid addInstanceListener(String listener)
listener
- Java class name of an InstanceListener classvoid addJspMapping(String pattern)
pattern
- URL pattern to be mappedvoid addLocaleEncodingMappingParameter(String locale, String encoding)
locale
- locale to map an encoding forencoding
- encoding to be used for a give localevoid addLocalEjb(ContextLocalEjb ejb)
ejb
- New local EJB resource referencevoid addMimeMapping(String extension, String mimeType)
extension
- Filename extension being mappedmimeType
- Corresponding MIME typevoid addParameter(String name, String value)
name
- Name of the new parametervalue
- Value of the new parametervoid addResource(ContextResource resource)
resource
- New resource referencevoid addResourceEnvRef(String name, String type)
name
- The resource environment reference nametype
- The resource environment reference typevoid addResourceLink(ContextResourceLink resourceLink)
resourceLink
- New resource linkvoid addRoleMapping(String role, String link)
role
- Security role used in the applicationlink
- Actual security role to check forvoid addSecurityRole(String role)
role
- New security rolevoid addServletMapping(String pattern, String name)
pattern
- the URL pattern to be mappedname
- the name of the Servlet to which to mapvoid addWatchedResource(String name)
name
- Path to the resource, relative to docBasevoid addWelcomeFile(String name)
name
- New welcome file namevoid addWrapperLifecycle(String listener)
listener
- Java class name of a LifecycleListener classvoid addWrapperListener(String listener)
listener
- Java class name of a ContainerListener classWrapper createWrapper()
javax.servlet.ServletRegistration.Dynamic addServlet(String servletName, javax.servlet.Servlet instance, Map<String,String> initParams) throws javax.servlet.ServletException
In order to add any URL patterns that will be mapped to the given servlet, addServletMappings must be used. If this context has already been started, the URL patterns must be passed to addServlet instead.
servletName
- the servlet nameinstance
- the servlet instanceinitParams
- Map containing the initialization parameters for
the servletjavax.servlet.ServletException
- if the servlet fails to be initializedjavax.servlet.ServletRegistration.Dynamic addServlet(String servletName, javax.servlet.Servlet instance, Map<String,String> initParams, String... urlPatterns) throws javax.servlet.ServletException
servletName
- the servlet nameinstance
- the servlet instanceinitParams
- Map containing the initialization parameters for
the servleturlPatterns
- the URL patterns that will be mapped to the servletjavax.servlet.ServletException
- if the servlet fails to be initializedList<ApplicationParameter> findApplicationParameters()
List<SecurityConstraint> getConstraints()
boolean hasConstraints()
void removeConstraints()
ContextEjb findEjb(String name)
null
.name
- Name of the desired EJB resource referenceContextEjb[] findEjbs()
ContextEnvironment findEnvironment(String name)
null
.name
- Name of the desired environment entryContextEnvironment[] findEnvironments()
ErrorPage findErrorPage(int errorCode)
null
.errorCode
- Error code to look upErrorPage findErrorPage(String exceptionType)
null
.exceptionType
- Exception type to look upErrorPage getDefaultErrorPage()
A default error page is an error page that was declared without any exception-type and error-code.
FilterDef findFilterDef(String filterName)
null
.filterName
- Filter name to look upFilterDef[] findFilterDefs()
List<FilterMap> findFilterMaps()
List<String> findInstanceListeners()
ContextLocalEjb findLocalEjb(String name)
null
.name
- Name of the desired EJB resource referenceContextLocalEjb[] findLocalEjbs()
String findMimeMapping(String extension)
null
.extension
- Extension to map to a MIME typeString[] findMimeMappings()
String findParameter(String name)
null
.name
- Name of the parameter to returnString[] findParameters()
ContextResource findResource(String name)
null
.name
- Name of the desired resource referenceString findResourceEnvRef(String name)
null
.name
- Name of the desired resource environment referenceString[] findResourceEnvRefs()
ContextResourceLink findResourceLink(String name)
null
.name
- Name of the desired resource linkContextResourceLink[] findResourceLinks()
ContextResource[] findResources()
String findRoleMapping(String role)
role
- Security role to mapboolean hasSecurityRole(String role)
role
- Security role to check forvoid removeSecurityRoles()
String findServletMapping(String pattern)
null
.pattern
- Pattern for which a mapping is requestedString[] findServletMappings()
ErrorPage findStatusPage(int status)
null
.status
- HTTP status code to look upint[] findStatusPages()
List<String> getWatchedResources()
boolean findWelcomeFile(String name)
true
if the specified welcome file is defined
for this Context; otherwise return false
.name
- Welcome file to verifyString[] findWelcomeFiles()
List<String> findWrapperLifecycles()
List<String> findWrapperListeners()
void reload()
IllegalStateException
- if the reloadable
property is set to false
.void removeApplicationParameter(String name)
name
- Name of the application parameter to removevoid removeEjb(String name)
name
- Name of the EJB resource reference to removevoid removeEnvironment(String name)
name
- Name of the environment entry to removevoid removeErrorPages()
void removeFilterDef(FilterDef filterDef)
filterDef
- Filter definition to be removedvoid removeFilterMaps()
void removeInstanceListener(String listener)
listener
- Class name of an InstanceListener class to be removedvoid removeLocalEjb(String name)
name
- Name of the EJB resource reference to removevoid removeMimeMapping(String extension)
extension
- Extension to remove the mapping forvoid removeParameter(String name)
name
- Name of the parameter to removevoid removeResource(String name)
name
- Name of the resource reference to removevoid removeResourceEnvRef(String name)
name
- Name of the resource environment reference to removevoid removeResourceLink(String name)
name
- Name of the resource link to removevoid removeRoleMapping(String role)
role
- Security role (as used in the application) to removevoid removeServletMapping(String pattern)
pattern
- URL pattern of the mapping to removeboolean hasWatchedResources()
void removeWatchedResources()
void removeWrapperLifecycles()
void removeWrapperListeners()
void removeWelcomeFiles()
boolean getReuseSessionID()
void setReuseSessionID(boolean reuse)
reuse
- The new value for the flagboolean getAllowRelativeRedirect()
void setAllowRelativeRedirect(boolean allowRelativeURLs)
allowRelativeURLs
- The new value for this property. The
default value for this flag is 'false'.boolean getXmlNamespaceAware()
boolean getXmlValidation()
void setXmlValidation(boolean xmlValidation)
xmlValidation
- true to enable xml instance validationvoid setXmlNamespaceAware(boolean xmlNamespaceAware)
xmlNamespaceAware
- true to enable namespace awarenessvoid setTldValidation(boolean tldValidation)
tldValidation
- true to enable xml instance validationboolean getTldValidation()
boolean getTldNamespaceAware()
void setTldNamespaceAware(boolean tldNamespaceAware)
tldNamespaceAware
- true to enable namespace awarenessboolean isJsfApplication()
true
if this context contains the JSF servlet.boolean hasAdHocPaths()
String getAdHocServletName(String path)
path
- The path to serviceboolean isSecurePagesWithPragma()
void setSecurePagesWithPragma(boolean securePagesWithPragma)
securePagesWithPragma
- true if Pragma and Cache-Control headers
are to be set to "No-cache" if proxy caching has been disabled, false
otherwiseAuthenticator getAuthenticator()
void fireRequestInitializedEvent(javax.servlet.ServletRequest request)
request
- void fireRequestDestroyedEvent(javax.servlet.ServletRequest request)
request
- Copyright © 2020. All rights reserved.