StandardContext.RestrictedServletContextListener
ContainerBase.ContainerBackgroundProcessor, ContainerBase.PrivilegedAddChild
Modifier and Type | Field and Description |
---|---|
protected ArrayList<String> |
listenerNames |
cachedFinds, rb
_id, defaultCharset, formHintField, webSessionCookieConfig
allowLinking, cacheMaxSize, cacheTTL, caseSensitive, caseSensitiveMapping, contextListeners, directoryDeployed, directoryListing, filterRegisMap, isJsfApplication, servletRegisMap, servletReloadCheckSecs, showArchivedRealPathEnabled, urlEncoder
backgroundProcessorDelay, checkIfRequestIsSecure, children, controller, debug, domain, hasCustomPipeline, initialized, lifecycle, listeners, loader, log, manager, name, notifyContainerListeners, oname, parent, parentClassLoader, pipeline, readLock, realm, resources, started, support, writeLock
RELOAD_EVENT
ADD_CHILD_EVENT, ADD_MAPPER_EVENT, ADD_VALVE_EVENT, REMOVE_CHILD_EVENT, REMOVE_MAPPER_EVENT, REMOVE_VALVE_EVENT
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, INIT_EVENT, START_EVENT, STOP_EVENT
Constructor and Description |
---|
ContextFacade(File docRoot,
String contextRoot,
ClassLoader classLoader)
Construct a new instance of this class, associated with the specified
Context instance.
|
Modifier and Type | Method and Description |
---|---|
javax.servlet.FilterRegistration.Dynamic |
addFilter(String filterName,
Class<? extends javax.servlet.Filter> filterClass)
Adds the filter with the given name and class type to this servlet
context.
|
javax.servlet.FilterRegistration.Dynamic |
addFilter(String filterName,
javax.servlet.Filter filter) |
javax.servlet.FilterRegistration.Dynamic |
addFilter(String filterName,
String className)
Adds the filter with the given name and class name to this servlet
context.
|
javax.servlet.FilterRegistration.Dynamic |
addFilterFacade(String filterName,
String className) |
void |
addFilterMap(FilterMap filterMap,
boolean isMatchAfter)
Add a filter mapping to this Context.
|
void |
addListener(Class<? extends EventListener> listenerClass)
Adds a listener of the given class type to this ServletContext.
|
void |
addListener(String className)
Adds the listener with the given class name to this ServletContext.
|
<T extends EventListener> |
addListener(T t)
Adds the given listener instance to this ServletContext.
|
javax.servlet.ServletRegistration.Dynamic |
addServlet(String servletName,
Class<? extends javax.servlet.Servlet> servletClass) |
javax.servlet.ServletRegistration.Dynamic |
addServlet(String servletName,
javax.servlet.Servlet servlet) |
javax.servlet.ServletRegistration.Dynamic |
addServlet(String servletName,
String className) |
javax.servlet.ServletRegistration.Dynamic |
addServletFacade(String servletName,
String className) |
Set<String> |
addServletMapping(String name,
String[] urlPatterns)
Adds the given servlet mappings to this Context.
|
protected ServletRegistrationImpl |
createDynamicServletRegistrationImpl(StandardWrapper wrapper) |
<T extends javax.servlet.Filter> |
createFilter(Class<T> clazz)
Instantiates the given Filter class and performs any required
resource injection into the new Filter instance before returning
it.
|
<T extends EventListener> |
createListener(Class<T> clazz)
Instantiates the given EventListener class and performs any
required resource injection into the new EventListener instance
before returning it.
|
<T extends javax.servlet.Servlet> |
createServlet(Class<T> clazz)
Instantiates the given Servlet class and performs any required
resource injection into the new Servlet instance before returning
it.
|
protected ServletRegistrationImpl |
createServletRegistrationImpl(StandardWrapper wrapper) |
void |
declareRoles(String... roleNames) |
Map<String,String> |
getAddedFilters() |
Map<String,String> |
getAddedServlets()
Returns previously added servlets
|
String |
getAppName() |
Object |
getAttribute(String name)
Return the value of the specified context attribute, if any;
otherwise return
null . |
Enumeration<String> |
getAttributeNames()
Return an enumeration of the names of the context attributes
associated with this context.
|
ClassLoader |
getClassLoader()
Gets the class loader of the web application represented by this
ServletContext.
|
javax.servlet.ServletContext |
getContext(String uripath)
Return a
ServletContext object that corresponds to a
specified URI on the server. |
String |
getContextPath()
Returns the context path of the web application.
|
String |
getContextRoot()
Gets this web module's context root.
|
Set<javax.servlet.SessionTrackingMode> |
getDefaultSessionTrackingModes()
Gets the session tracking modes that are supported by default for this
ServletContext.
|
String |
getDefaultWebXml() |
File |
getDocRoot() |
int |
getEffectiveMajorVersion() |
int |
getEffectiveMinorVersion() |
Set<javax.servlet.SessionTrackingMode> |
getEffectiveSessionTrackingModes()
Gets the session tracking modes that are in effect for this
ServletContext.
|
javax.servlet.FilterRegistration |
getFilterRegistration(String filterName)
Gets the FilterRegistration corresponding to the filter with the
given filterName.
|
Map<String,? extends javax.servlet.FilterRegistration> |
getFilterRegistrations()
Gets a Map of the FilterRegistration objects corresponding to all
currently registered filters.
|
String |
getInitParameter(String name)
Return the value of the specified initialization parameter, or
null if this parameter does not exist. |
Enumeration<String> |
getInitParameterNames()
Return the names of the context's initialization parameters, or an
empty enumeration if the context has no initialization parameters.
|
javax.servlet.descriptor.JspConfigDescriptor |
getJspConfigDescriptor()
Gets the
<jsp-config> related configuration
that was aggregated over the web.xml and
web-fragment.xml resources of the web application
represented by this ServletContext. |
List<String> |
getListeners() |
int |
getMajorVersion()
Return the major version of the Java Servlet API that we implement.
|
String |
getMimeType(String file)
Return the MIME type of the specified file, or
null if
the MIME type cannot be determined. |
int |
getMinorVersion()
Return the minor version of the Java Servlet API that we implement.
|
javax.servlet.RequestDispatcher |
getNamedDispatcher(String name)
Return a
RequestDispatcher object that acts as a
wrapper for the named servlet. |
String |
getPath()
Return the context path for this Context.
|
String |
getRealPath(String path)
Return the real path corresponding to the given virtual path, or
null if the container was unable to perform the
translation |
javax.servlet.RequestDispatcher |
getRequestDispatcher(String path)
Return a
RequestDispatcher instance that acts as a
wrapper for the resource at the given path. |
URL |
getResource(String path)
Return the URL to the resource that is mapped to a specified path.
|
InputStream |
getResourceAsStream(String path)
Return the requested resource as an
InputStream . |
Set<String> |
getResourcePaths(String path)
Return a Set containing the resource paths of resources member of the
specified collection.
|
SecurityConfig |
getSecurityConfig()
Gets the security related configuration for this context
|
String |
getServerInfo()
Return the name and version of the servlet container.
|
javax.servlet.Servlet |
getServlet(String name) |
String |
getServletContextName()
Return the display name of this web application.
|
Map<String,String[]> |
getServletMappings() |
Map<String,String> |
getServletNameFilterMappings() |
Enumeration<String> |
getServletNames() |
javax.servlet.ServletRegistration |
getServletRegistration(String servletName)
Gets the ServletRegistration corresponding to the servlet with the
given servletName.
|
Map<String,? extends javax.servlet.ServletRegistration> |
getServletRegistrations()
Gets a Map of the ServletRegistration objects corresponding to all
currently registered servlets.
|
Enumeration<javax.servlet.Servlet> |
getServlets() |
javax.servlet.SessionCookieConfig |
getSessionCookieConfig()
Gets the session tracking cookie configuration of this
ServletContext.
|
WebModule |
getUnwrappedContext()
Gets the underlying StandardContext to which this
ContextFacade is ultimately delegating.
|
Map<String,String> |
getUrlPatternFilterMappings() |
String |
getVirtualServerName() |
boolean |
isDirectoryListing()
Checks whether directory listings are enabled or disabled on this
Context.
|
void |
log(Exception exception,
String msg)
Writes the specified exception and message to a servlet log file.
|
void |
log(String msg)
Writes the specified message to a servlet log file.
|
void |
log(String message,
Throwable throwable)
Writes the specified message and exception to a servlet log file.
|
void |
removeAttribute(String name)
Remove the context attribute with the specified name, if any.
|
void |
setAppName(String name) |
void |
setAttribute(String name,
Object object)
Bind the specified value with the specified context attribute name,
replacing any existing value for that name.
|
void |
setDefaultWebXml(String defaultWebXml)
Set the location of the default web xml that will be used.
|
void |
setDirectoryListing(boolean directoryListing)
Enables or disables directory listings on this Context.
|
boolean |
setInitParameter(String name,
String value) |
void |
setPath(String path)
Set the context path for this Context.
|
void |
setSecurityConfig(SecurityConfig config)
Set the security related configuration for this context
|
void |
setSessionTrackingModes(Set<javax.servlet.SessionTrackingMode> sessionTrackingModes)
Sets the session tracking modes that are to become effective for this
ServletContext.
|
void |
setUnwrappedContext(WebModule wm) |
addAdHocValve, addCatalinaListener, addValve, addValve, afterServiceEvent, beforeServiceEvent, callServletContainerInitializers, configureCatalinaProperties, configureCatalinaProperties, configureSessionSettings, configureValves, contextListenerStart, createFilterInstance, createHttpUpgradeHandlerInstance, createListenerInstance, createObjectInputStream, createObjectOutputStream, createServletInstance, getAdHocPipeline, getAdHocServletName, getBean, getCachedFindOperation, getComponentId, getFileEncoding, getIasWebAppConfigBean, getLocaleCharsetMap, getMonitoringNodeName, getServerContext, getTypes, getUniqueId, getWebBundleDescriptor, getWebContainer, getWebModuleConfig, hasAdHocPaths, hasAdHocSubtrees, hasBeenXmlConfigured, hasLocaleToCharsetMapping, isStandalone, loadListener, mapLocalesToCharset, removeAdHocValve, removePatternFromServlet, servletDestroyedEvent, servletInitializedEvent, sessionActivatedEndEvent, sessionActivatedStartEvent, sessionCreatedEvent, sessionDestroyedEvent, sessionExpiredEvent, sessionPassivatedEndEvent, sessionPassivatedStartEvent, sessionPersistedEndEvent, sessionPersistedStartEvent, sessionRejectedEvent, setBean, setCachedFindOperation, setFileEncoding, setI18nInfo, setIasWebAppConfigBean, setParent, setRealm, setWebContainer, setWebModuleConfig, setXmlConfigured, start, stop, webModuleStartedEvent, webModuleStoppedEvent
createWrapper, getCacheControls, getDefaultCharset, getEncodeCookies, getEndpointAddresses, getFormHintField, getHasWebServices, getID, getModuleName, getResponseCTForHeaders, getSessionCookieConfigFromSunWebXml, getSTMPoolSize, hasWebXml, setCacheControls, setContextRoot, setEncodeCookies, setEndpointAddresses, setHasWebServices, setHasWebXml, setID, setModuleName, setResponseCTForHeaders, setSessionCookieConfigFromSunWebXml, setSTMPoolSize
addAlternateDocBase, addApplicationListener, addApplicationParameter, addChild, addChild, addConstraint, addEjb, addEnvironment, addEnvironment, addErrorPage, addFilterDef, addFilterDef, addFilterMap, addFilterMaps, addInstanceListener, addInstanceListener, addJspFile, addJspMapping, addLocaleEncodingMappingParameter, addLocalEjb, addMessageDestination, addMessageDestinationRef, addMimeMapping, addParameter, addResource, addResource, addResourceEnvRef, addResourceLink, addResourceLink, addResourceParams, addRoleMapping, addSecurityRole, addServlet, addServlet, addServletMapping, addServletMapping, addServletMapping, addWatchedResource, addWelcomeFile, addWrapperLifecycle, addWrapperListener, adjustURLPattern, alternateResourcesStart, alternateResourcesStop, backgroundProcess, create, createLoader, createObjectName, createObjectName, createObjectName, createObjectName, destroy, engineBase, filterStart, filterStop, findApplicationParameters, findEjb, findEjbs, findEnvironment, findEnvironments, findErrorPage, findErrorPage, findFilterConfig, findFilterDef, findFilterDefs, findFilterMaps, findInstanceListeners, findLocalEjb, findLocalEjbs, findMappingObject, findMessageDestination, findMessageDestinationRef, findMessageDestinationRefs, findMessageDestinations, findMimeMapping, findMimeMappings, findParameter, findParameters, findResource, findResourceEnvRef, findResourceEnvRefs, findResourceLink, findResourceLinks, findResources, findRoleMapping, findServletMapping, findServletMappings, findStaticResources, findStatusPage, findStatusPages, findWelcomeFile, findWelcomeFiles, findWrapperLifecycles, findWrapperListeners, fireRequestDestroyedEvent, fireRequestInitializedEvent, getAllowRelativeRedirect, getAltDDName, getAlternateDocBases, getAntiJARLocking, getApplicationEventListeners, getAuditors, getAuthenticator, getAvailable, getCacheMaxSize, getCacheTTL, getCharsetMapper, getCharsetMapperClass, getCompilerClasspath, getConfigFile, getConfigured, getConstraints, getCookies, getCrossContext, getDefaultConfigFile, getDefaultErrorPage, getDelegate, getDisplayName, getDistributable, getDocBase, getEncodedPath, getEngineName, getEnvironments, getHostname, getInfo, getJ2EEApplication, getJ2EEServer, getJvmRoute, getLoginConfig, getManagerChecksFrequency, getMapper, getNamingContextName, getNamingResources, getOriginalDocBase, getOverride, getParentName, getPaused, getPrivileged, getPublicId, getReloadable, getRequestCharacterEncoding, getResourceLinks, getResourceNames, getResponseCharacterEncoding, getReuseSessionID, getServletContext, getServletNameFilterMappings, getSessionCookieName, getSessionListeners, getSessionParameterName, getSessionTimeout, getStartTimeMillis, getStartupTime, getState, getStaticResources, getTldNamespaceAware, getTldScanTime, getTldValidation, getUnloadDelay, getUnpackWAR, getUrlPatternFilterMappings, getWatchedResources, getWelcomeFiles, getWorkDir, getWorkPath, getXmlNamespaceAware, getXmlValidation, hasConstraints, hasFilter, hasSecurityRole, hasServlet, hasWatchedResources, init, isAllowLinking, isCachingAllowed, isCaseSensitive, isCaseSensitiveMapping, isEmbedded, isEnableURLRewriting, isEventProvider, isFilesystemBased, isJsfApplication, isReload, isReplaceWelcomeFiles, isSecurePagesWithPragma, isServlet22, isSessionTimeoutOveridden, isStatisticsProvider, isUseMyFaces, isUseNaming, loadOnStartup, managerStart, managerStop, reload, removeApplicationParameter, removeChild, removeConstraints, removeEjb, removeEnvironment, removeErrorPages, removeFilterDef, removeFilterMaps, removeInstanceListener, removeLocalEjb, removeMessageDestination, removeMessageDestinationRef, removeMimeMapping, removeParameter, removeResource, removeResourceEnvRef, removeResourceLink, removeRoleMapping, removeSecurityRoles, removeServletMapping, removeWatchedResources, removeWelcomeFiles, removeWrapperLifecycles, removeWrapperListeners, resourcesStart, resourcesStop, restrictedSetPipeline, sendNotification, setAllowLinking, setAllowRelativeRedirect, setAltDDName, setAntiJARLocking, setAuditors, setAvailable, setCacheMaxSize, setCacheTTL, setCachingAllowed, setCaseSensitive, setCaseSensitiveMapping, setCharsetMapper, setCharsetMapperClass, setCompilerClasspath, setConfigFile, setConfigured, setCookies, setCrossContext, setDelegate, setDisplayName, setDistributable, setDocBase, setEffectiveMajorVersion, setEffectiveMinorVersion, setEmbedded, setEnableURLRewriting, setEngineName, setJ2EEApplication, setJ2EEServer, setJspConfigDescriptor, setJvmRoute, setLoginConfig, setManagerChecksFrequency, setName, setNamingResources, setOrderedLibs, setOriginalDocBase, setOverride, setPrivileged, setPublicId, setReload, setReloadable, setReplaceWelcomeFiles, setRequestCharacterEncoding, setResources, setResponseCharacterEncoding, setReuseSessionID, setSecurePagesWithPragma, setServletContainerInitializerInterestList, setSessionTimeout, setStartupTime, setTldNamespaceAware, setTldScanTime, setTldValidation, setUnloadDelay, setUnpackWAR, setUseMyFaces, setUseNaming, setWorkDir, setXmlNamespaceAware, setXmlValidation, startRecursive, stop, toString, validateURLPattern
addContainerListener, addLifecycleListener, addPropertyChangeListener, addValve, addValve, findChild, findChildren, findContainerListeners, findLifecycleListeners, fireContainerEvent, getBackgroundProcessorDelay, getBasic, getChildren, getContainerSuffix, getDebug, getDomain, getJmxName, getLoader, getLogger, getManager, getMappingObject, getName, getObjectName, getParent, getParentClassLoader, getPipeline, getRealm, getResources, getValveObjectNames, getValves, hasCustomPipeline, hasNonBasicValves, invoke, isCheckIfRequestIsSecure, logName, removeContainerListener, removeLifecycleListener, removeLifecycleListeners, removePropertyChangeListener, removeValve, setBackgroundProcessorDelay, setBasic, setCheckIfRequestIsSecure, setDebug, setDomain, setLoader, setLogger, setManager, setParentClassLoader, startChildren, threadStart, threadStop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addJspFile, getRequestCharacterEncoding, getResponseCharacterEncoding, getSessionTimeout, setRequestCharacterEncoding, setResponseCharacterEncoding, setSessionTimeout
addContainerListener, addPropertyChangeListener, findChild, findChildren, findContainerListeners, fireContainerEvent, getBackgroundProcessorDelay, getLoader, getLogger, getManager, getMappingObject, getName, getParent, getParentClassLoader, getPipeline, getRealm, getResources, hasCustomPipeline, invoke, isCheckIfRequestIsSecure, removeContainerListener, removePropertyChangeListener, setBackgroundProcessorDelay, setCheckIfRequestIsSecure, setLoader, setLogger, setManager, setParentClassLoader
public ContextFacade(File docRoot, String contextRoot, ClassLoader classLoader)
docRoot
- contextRoot
- classLoader
- public String getAppName()
public void setAppName(String name)
public String getContextRoot()
PwcWebModule
getContextRoot
in class PwcWebModule
public File getDocRoot()
public String getContextPath()
StandardContext
getContextPath
in interface javax.servlet.ServletContext
getContextPath
in class StandardContext
public javax.servlet.ServletContext getContext(String uripath)
StandardContext
ServletContext
object that corresponds to a
specified URI on the server.getContext
in interface javax.servlet.ServletContext
getContext
in class StandardContext
public int getMajorVersion()
StandardContext
getMajorVersion
in interface javax.servlet.ServletContext
getMajorVersion
in class StandardContext
public int getMinorVersion()
StandardContext
getMinorVersion
in interface javax.servlet.ServletContext
getMinorVersion
in class StandardContext
public int getEffectiveMajorVersion()
getEffectiveMajorVersion
in interface javax.servlet.ServletContext
getEffectiveMajorVersion
in class StandardContext
public int getEffectiveMinorVersion()
getEffectiveMinorVersion
in interface javax.servlet.ServletContext
getEffectiveMinorVersion
in class StandardContext
public String getMimeType(String file)
StandardContext
null
if
the MIME type cannot be determined.getMimeType
in interface javax.servlet.ServletContext
getMimeType
in class StandardContext
public Set<String> getResourcePaths(String path)
StandardContext
getResourcePaths
in interface javax.servlet.ServletContext
getResourcePaths
in class StandardContext
public URL getResource(String path) throws MalformedURLException
StandardContext
getResource
in interface javax.servlet.ServletContext
getResource
in class StandardContext
MalformedURLException
public InputStream getResourceAsStream(String path)
StandardContext
InputStream
. The
path must be specified according to the rules described under
getResource
. If no such resource can be identified,
return null
.getResourceAsStream
in interface javax.servlet.ServletContext
getResourceAsStream
in class StandardContext
public javax.servlet.RequestDispatcher getRequestDispatcher(String path)
StandardContext
RequestDispatcher
instance that acts as a
wrapper for the resource at the given path. The path must begin
with a "/" and is interpreted as relative to the current context root.getRequestDispatcher
in interface javax.servlet.ServletContext
getRequestDispatcher
in class StandardContext
public javax.servlet.RequestDispatcher getNamedDispatcher(String name)
StandardContext
RequestDispatcher
object that acts as a
wrapper for the named servlet.getNamedDispatcher
in interface javax.servlet.ServletContext
getNamedDispatcher
in class StandardContext
public javax.servlet.Servlet getServlet(String name)
getServlet
in interface javax.servlet.ServletContext
getServlet
in class StandardContext
public Enumeration<javax.servlet.Servlet> getServlets()
getServlets
in interface javax.servlet.ServletContext
getServlets
in class StandardContext
public Enumeration<String> getServletNames()
getServletNames
in interface javax.servlet.ServletContext
getServletNames
in class StandardContext
public void log(String msg)
StandardContext
log
in interface javax.servlet.ServletContext
log
in class StandardContext
msg
- Message to be loggedpublic void log(Exception exception, String msg)
StandardContext
log
in interface javax.servlet.ServletContext
log
in class StandardContext
public void log(String message, Throwable throwable)
StandardContext
log
in interface javax.servlet.ServletContext
log
in class StandardContext
message
- Message to be loggedthrowable
- Related exceptionpublic String getRealPath(String path)
StandardContext
null
if the container was unable to perform the
translationgetRealPath
in interface javax.servlet.ServletContext
getRealPath
in class StandardContext
public String getServerInfo()
StandardContext
getServerInfo
in interface javax.servlet.ServletContext
getServerInfo
in class StandardContext
public String getInitParameter(String name)
StandardContext
null
if this parameter does not exist.getInitParameter
in interface javax.servlet.ServletContext
getInitParameter
in class StandardContext
public Enumeration<String> getInitParameterNames()
StandardContext
getInitParameterNames
in interface javax.servlet.ServletContext
getInitParameterNames
in class StandardContext
public boolean setInitParameter(String name, String value)
setInitParameter
in interface javax.servlet.ServletContext
setInitParameter
in class StandardContext
public Object getAttribute(String name)
StandardContext
null
.getAttribute
in interface javax.servlet.ServletContext
getAttribute
in class StandardContext
public Enumeration<String> getAttributeNames()
StandardContext
getAttributeNames
in interface javax.servlet.ServletContext
getAttributeNames
in class StandardContext
public void setAttribute(String name, Object object)
StandardContext
setAttribute
in interface javax.servlet.ServletContext
setAttribute
in class StandardContext
public void removeAttribute(String name)
StandardContext
removeAttribute
in interface javax.servlet.ServletContext
removeAttribute
in class StandardContext
public String getServletContextName()
StandardContext
getServletContextName
in interface javax.servlet.ServletContext
getServletContextName
in class StandardContext
public javax.servlet.ServletRegistration.Dynamic addServlet(String servletName, String className)
addServlet
in interface javax.servlet.ServletContext
addServlet
in class StandardContext
public javax.servlet.ServletRegistration.Dynamic addServletFacade(String servletName, String className)
protected ServletRegistrationImpl createServletRegistrationImpl(StandardWrapper wrapper)
createServletRegistrationImpl
in class WebModule
protected ServletRegistrationImpl createDynamicServletRegistrationImpl(StandardWrapper wrapper)
createDynamicServletRegistrationImpl
in class WebModule
public javax.servlet.ServletRegistration.Dynamic addServlet(String servletName, Class<? extends javax.servlet.Servlet> servletClass)
addServlet
in interface javax.servlet.ServletContext
addServlet
in class StandardContext
public javax.servlet.ServletRegistration.Dynamic addServlet(String servletName, javax.servlet.Servlet servlet)
addServlet
in interface javax.servlet.ServletContext
addServlet
in class StandardContext
public Set<String> addServletMapping(String name, String[] urlPatterns)
StandardContext
If any of the specified URL patterns are already mapped to a different Servlet, no updates will be performed.
addServletMapping
in class StandardContext
name
- the Servlet nameurlPatterns
- the URL patternspublic <T extends javax.servlet.Servlet> T createServlet(Class<T> clazz) throws javax.servlet.ServletException
StandardContext
createServlet
in interface javax.servlet.ServletContext
createServlet
in class StandardContext
javax.servlet.ServletException
public javax.servlet.ServletRegistration getServletRegistration(String servletName)
StandardContext
getServletRegistration
in interface javax.servlet.ServletContext
getServletRegistration
in class StandardContext
public Map<String,? extends javax.servlet.ServletRegistration> getServletRegistrations()
StandardContext
getServletRegistrations
in interface javax.servlet.ServletContext
getServletRegistrations
in class StandardContext
public javax.servlet.FilterRegistration.Dynamic addFilterFacade(String filterName, String className)
public javax.servlet.FilterRegistration.Dynamic addFilter(String filterName, String className)
StandardContext
addFilter
in interface javax.servlet.ServletContext
addFilter
in class StandardContext
public void addFilterMap(FilterMap filterMap, boolean isMatchAfter)
StandardContext
addFilterMap
in class StandardContext
filterMap
- The filter mapping to be addedisMatchAfter
- true if the given filter mapping should be matched
against requests after any declared filter mappings of this servlet
context, and false if it is supposed to be matched before any declared
filter mappings of this servlet contextpublic javax.servlet.FilterRegistration.Dynamic addFilter(String filterName, javax.servlet.Filter filter)
addFilter
in interface javax.servlet.ServletContext
addFilter
in class StandardContext
public javax.servlet.FilterRegistration.Dynamic addFilter(String filterName, Class<? extends javax.servlet.Filter> filterClass)
StandardContext
addFilter
in interface javax.servlet.ServletContext
addFilter
in class StandardContext
public <T extends javax.servlet.Filter> T createFilter(Class<T> clazz) throws javax.servlet.ServletException
StandardContext
createFilter
in interface javax.servlet.ServletContext
createFilter
in class StandardContext
javax.servlet.ServletException
public javax.servlet.FilterRegistration getFilterRegistration(String filterName)
StandardContext
getFilterRegistration
in interface javax.servlet.ServletContext
getFilterRegistration
in class StandardContext
public Map<String,? extends javax.servlet.FilterRegistration> getFilterRegistrations()
StandardContext
getFilterRegistrations
in interface javax.servlet.ServletContext
getFilterRegistrations
in class StandardContext
public javax.servlet.SessionCookieConfig getSessionCookieConfig()
PwcWebModule
getSessionCookieConfig
in interface javax.servlet.ServletContext
getSessionCookieConfig
in interface Context
getSessionCookieConfig
in class PwcWebModule
public void setSessionTrackingModes(Set<javax.servlet.SessionTrackingMode> sessionTrackingModes)
StandardContext
setSessionTrackingModes
in interface javax.servlet.ServletContext
setSessionTrackingModes
in class StandardContext
public Set<javax.servlet.SessionTrackingMode> getDefaultSessionTrackingModes()
StandardContext
getDefaultSessionTrackingModes
in interface javax.servlet.ServletContext
getDefaultSessionTrackingModes
in class StandardContext
public Set<javax.servlet.SessionTrackingMode> getEffectiveSessionTrackingModes()
StandardContext
getEffectiveSessionTrackingModes
in interface javax.servlet.ServletContext
getEffectiveSessionTrackingModes
in class StandardContext
public void addListener(String className)
StandardContext
addListener
in interface javax.servlet.ServletContext
addListener
in class StandardContext
className
- the fully qualified class name of the listenerpublic <T extends EventListener> void addListener(T t)
StandardContext
addListener
in interface javax.servlet.ServletContext
addListener
in class StandardContext
t
- the listener to be addedpublic void addListener(Class<? extends EventListener> listenerClass)
StandardContext
addListener
in interface javax.servlet.ServletContext
addListener
in class StandardContext
listenerClass
- the class from which to instantiate of the listenerpublic <T extends EventListener> T createListener(Class<T> clazz) throws javax.servlet.ServletException
StandardContext
createListener
in interface javax.servlet.ServletContext
createListener
in class StandardContext
javax.servlet.ServletException
public javax.servlet.descriptor.JspConfigDescriptor getJspConfigDescriptor()
StandardContext
<jsp-config>
related configuration
that was aggregated over the web.xml
and
web-fragment.xml
resources of the web application
represented by this ServletContext.getJspConfigDescriptor
in interface javax.servlet.ServletContext
getJspConfigDescriptor
in class StandardContext
public ClassLoader getClassLoader()
StandardContext
getClassLoader
in interface javax.servlet.ServletContext
getClassLoader
in class StandardContext
public void declareRoles(String... roleNames)
declareRoles
in interface javax.servlet.ServletContext
declareRoles
in class WebModule
public String getVirtualServerName()
getVirtualServerName
in interface javax.servlet.ServletContext
getVirtualServerName
in class StandardContext
public String getPath()
StandardContext
getPath
in interface Context
getPath
in class StandardContext
public void setPath(String path)
StandardContext
IMPLEMENTATION NOTE: The context path is used as the "name" of a Context, because it must be unique.
setPath
in interface Context
setPath
in class StandardContext
path
- The new context pathpublic String getDefaultWebXml()
getDefaultWebXml
in class StandardContext
public void setDefaultWebXml(String defaultWebXml)
StandardContext
setDefaultWebXml
in class StandardContext
defaultWebXml
- the defaultWebXml path to be usedpublic WebModule getUnwrappedContext()
public void setUnwrappedContext(WebModule wm)
public void setDirectoryListing(boolean directoryListing)
setDirectoryListing
in class StandardContext
directoryListing
- true if directory listings are to be
enabled on this Context, false otherwisepublic boolean isDirectoryListing()
StandardContext
isDirectoryListing
in class StandardContext
public void setSecurityConfig(SecurityConfig config)
setSecurityConfig
in class WebModule
config
- the security configuration for this contextSecurityConfig
public SecurityConfig getSecurityConfig()
getSecurityConfig
in class WebModule
SecurityConfig
Copyright © 2018. All rights reserved.