StandardContext.RestrictedServletContextListenerContainerBase.ContainerBackgroundProcessor, ContainerBase.PrivilegedAddChild| Modifier and Type | Field and Description |
|---|---|
protected ArrayList<String> |
listenerNames |
cachedFinds, rb_id, defaultCharset, formHintField, webSessionCookieConfigallowLinking, cacheMaxSize, cacheTTL, caseSensitive, caseSensitiveMapping, contextListeners, directoryDeployed, directoryListing, filterRegisMap, isJsfApplication, servletRegisMap, servletReloadCheckSecs, showArchivedRealPathEnabled, urlEncoderbackgroundProcessorDelay, checkIfRequestIsSecure, children, controller, debug, domain, hasCustomPipeline, initialized, lifecycle, listeners, loader, log, manager, name, notifyContainerListeners, oname, parent, parentClassLoader, pipeline, readLock, realm, resources, started, support, writeLockRELOAD_EVENTADD_CHILD_EVENT, ADD_MAPPER_EVENT, ADD_VALVE_EVENT, REMOVE_CHILD_EVENT, REMOVE_MAPPER_EVENT, REMOVE_VALVE_EVENTAFTER_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, webModuleStoppedEventcreateWrapper, getCacheControls, getDefaultCharset, getEncodeCookies, getEndpointAddresses, getFormHintField, getHasWebServices, getID, getModuleName, getResponseCTForHeaders, getSessionCookieConfigFromSunWebXml, getSTMPoolSize, hasWebXml, setCacheControls, setContextRoot, setEncodeCookies, setEndpointAddresses, setHasWebServices, setHasWebXml, setID, setModuleName, setResponseCTForHeaders, setSessionCookieConfigFromSunWebXml, setSTMPoolSizeaddAlternateDocBase, addApplicationListener, addApplicationParameter, addChild, addChild, addConstraint, addEjb, addEnvironment, addEnvironment, addErrorPage, addFilterDef, addFilterDef, addFilterMap, addFilterMaps, addInstanceListener, addInstanceListener, 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, getResourceLinks, getResourceNames, 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, setResources, setReuseSessionID, setSecurePagesWithPragma, setServletContainerInitializerInterestList, setSessionTimeout, setStartupTime, setTldNamespaceAware, setTldScanTime, setTldValidation, setUnloadDelay, setUnpackWAR, setUseMyFaces, setUseNaming, setWorkDir, setXmlNamespaceAware, setXmlValidation, startRecursive, stop, toString, validateURLPatternaddContainerListener, 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, threadStopclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddContainerListener, 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, setParentClassLoaderpublic ContextFacade(File docRoot, String contextRoot, ClassLoader classLoader)
docRoot - contextRoot - classLoader - public String getAppName()
public void setAppName(String name)
public String getContextRoot()
PwcWebModulegetContextRoot in class PwcWebModulepublic File getDocRoot()
public String getContextPath()
StandardContextgetContextPath in class StandardContextpublic javax.servlet.ServletContext getContext(String uripath)
StandardContextServletContext object that corresponds to a
specified URI on the server.getContext in interface javax.servlet.ServletContextgetContext in class StandardContextpublic int getMajorVersion()
StandardContextgetMajorVersion in interface javax.servlet.ServletContextgetMajorVersion in class StandardContextpublic int getMinorVersion()
StandardContextgetMinorVersion in interface javax.servlet.ServletContextgetMinorVersion in class StandardContextpublic int getEffectiveMajorVersion()
getEffectiveMajorVersion in class StandardContextpublic int getEffectiveMinorVersion()
getEffectiveMinorVersion in class StandardContextpublic String getMimeType(String file)
StandardContextnull if
the MIME type cannot be determined.getMimeType in interface javax.servlet.ServletContextgetMimeType in class StandardContextpublic Set<String> getResourcePaths(String path)
StandardContextgetResourcePaths in class StandardContextpublic URL getResource(String path) throws MalformedURLException
StandardContextgetResource in interface javax.servlet.ServletContextgetResource in class StandardContextMalformedURLExceptionpublic InputStream getResourceAsStream(String path)
StandardContextInputStream. 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.ServletContextgetResourceAsStream in class StandardContextpublic javax.servlet.RequestDispatcher getRequestDispatcher(String path)
StandardContextRequestDispatcher 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.ServletContextgetRequestDispatcher in class StandardContextpublic javax.servlet.RequestDispatcher getNamedDispatcher(String name)
StandardContextRequestDispatcher object that acts as a
wrapper for the named servlet.getNamedDispatcher in class StandardContextpublic javax.servlet.Servlet getServlet(String name)
getServlet in interface javax.servlet.ServletContextgetServlet in class StandardContextpublic Enumeration<javax.servlet.Servlet> getServlets()
getServlets in interface javax.servlet.ServletContextgetServlets in class StandardContextpublic Enumeration<String> getServletNames()
getServletNames in interface javax.servlet.ServletContextgetServletNames in class StandardContextpublic void log(String msg)
StandardContextlog in interface javax.servlet.ServletContextlog in class StandardContextmsg - Message to be loggedpublic void log(Exception exception, String msg)
StandardContextlog in interface javax.servlet.ServletContextlog in class StandardContextpublic void log(String message, Throwable throwable)
StandardContextlog in interface javax.servlet.ServletContextlog in class StandardContextmessage - Message to be loggedthrowable - Related exceptionpublic String getRealPath(String path)
StandardContextnull if the container was unable to perform the
translationgetRealPath in interface javax.servlet.ServletContextgetRealPath in class StandardContextpublic String getServerInfo()
StandardContextgetServerInfo in interface javax.servlet.ServletContextgetServerInfo in class StandardContextpublic String getInitParameter(String name)
StandardContextnull if this parameter does not exist.getInitParameter in class StandardContextpublic Enumeration<String> getInitParameterNames()
StandardContextgetInitParameterNames in class StandardContextpublic boolean setInitParameter(String name, String value)
setInitParameter in class StandardContextpublic Object getAttribute(String name)
StandardContextnull.getAttribute in interface javax.servlet.ServletContextgetAttribute in class StandardContextpublic Enumeration<String> getAttributeNames()
StandardContextgetAttributeNames in interface javax.servlet.ServletContextgetAttributeNames in class StandardContextpublic void setAttribute(String name, Object object)
StandardContextsetAttribute in interface javax.servlet.ServletContextsetAttribute in class StandardContextpublic void removeAttribute(String name)
StandardContextremoveAttribute in interface javax.servlet.ServletContextremoveAttribute in class StandardContextpublic String getServletContextName()
StandardContextgetServletContextName in class StandardContextpublic javax.servlet.ServletRegistration.Dynamic addServlet(String servletName, String className)
addServlet in class StandardContextpublic javax.servlet.ServletRegistration.Dynamic addServletFacade(String servletName, String className)
protected ServletRegistrationImpl createServletRegistrationImpl(StandardWrapper wrapper)
createServletRegistrationImpl in class WebModuleprotected ServletRegistrationImpl createDynamicServletRegistrationImpl(StandardWrapper wrapper)
createDynamicServletRegistrationImpl in class WebModulepublic javax.servlet.ServletRegistration.Dynamic addServlet(String servletName, Class<? extends javax.servlet.Servlet> servletClass)
addServlet in class StandardContextpublic javax.servlet.ServletRegistration.Dynamic addServlet(String servletName, javax.servlet.Servlet servlet)
addServlet in class StandardContextpublic Set<String> addServletMapping(String name, String[] urlPatterns)
StandardContextIf any of the specified URL patterns are already mapped to a different Servlet, no updates will be performed.
addServletMapping in class StandardContextname - the Servlet nameurlPatterns - the URL patternspublic <T extends javax.servlet.Servlet> T createServlet(Class<T> clazz) throws javax.servlet.ServletException
StandardContextcreateServlet in class StandardContextjavax.servlet.ServletExceptionpublic javax.servlet.ServletRegistration getServletRegistration(String servletName)
StandardContextgetServletRegistration in class StandardContextpublic Map<String,? extends javax.servlet.ServletRegistration> getServletRegistrations()
StandardContextgetServletRegistrations in class StandardContextpublic javax.servlet.FilterRegistration.Dynamic addFilterFacade(String filterName, String className)
public javax.servlet.FilterRegistration.Dynamic addFilter(String filterName, String className)
StandardContextaddFilter in class StandardContextpublic void addFilterMap(FilterMap filterMap, boolean isMatchAfter)
StandardContextaddFilterMap in class StandardContextfilterMap - 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 class StandardContextpublic javax.servlet.FilterRegistration.Dynamic addFilter(String filterName, Class<? extends javax.servlet.Filter> filterClass)
StandardContextaddFilter in class StandardContextpublic <T extends javax.servlet.Filter> T createFilter(Class<T> clazz) throws javax.servlet.ServletException
StandardContextcreateFilter in class StandardContextjavax.servlet.ServletExceptionpublic javax.servlet.FilterRegistration getFilterRegistration(String filterName)
StandardContextgetFilterRegistration in class StandardContextpublic Map<String,? extends javax.servlet.FilterRegistration> getFilterRegistrations()
StandardContextgetFilterRegistrations in class StandardContextpublic javax.servlet.SessionCookieConfig getSessionCookieConfig()
PwcWebModulegetSessionCookieConfig in interface ContextgetSessionCookieConfig in class PwcWebModulepublic void setSessionTrackingModes(Set<javax.servlet.SessionTrackingMode> sessionTrackingModes)
StandardContextsetSessionTrackingModes in class StandardContextpublic Set<javax.servlet.SessionTrackingMode> getDefaultSessionTrackingModes()
StandardContextgetDefaultSessionTrackingModes in class StandardContextpublic Set<javax.servlet.SessionTrackingMode> getEffectiveSessionTrackingModes()
StandardContextgetEffectiveSessionTrackingModes in class StandardContextpublic void addListener(String className)
StandardContextaddListener in class StandardContextclassName - the fully qualified class name of the listenerpublic <T extends EventListener> void addListener(T t)
StandardContextaddListener in class StandardContextt - the listener to be addedpublic void addListener(Class<? extends EventListener> listenerClass)
StandardContextaddListener in class StandardContextlistenerClass - the class from which to instantiate of the listenerpublic <T extends EventListener> T createListener(Class<T> clazz) throws javax.servlet.ServletException
StandardContextcreateListener in class StandardContextjavax.servlet.ServletExceptionpublic 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 class StandardContextpublic ClassLoader getClassLoader()
StandardContextgetClassLoader in class StandardContextpublic void declareRoles(String... roleNames)
declareRoles in class StandardContextpublic String getVirtualServerName()
getVirtualServerName in class StandardContextpublic String getPath()
StandardContextgetPath in interface ContextgetPath in class StandardContextpublic void setPath(String path)
StandardContextIMPLEMENTATION NOTE: The context path is used as the "name" of a Context, because it must be unique.
setPath in interface ContextsetPath in class StandardContextpath - The new context pathpublic String getDefaultWebXml()
getDefaultWebXml in class StandardContextpublic void setDefaultWebXml(String defaultWebXml)
StandardContextsetDefaultWebXml in class StandardContextdefaultWebXml - the defaultWebXml path to be usedpublic WebModule getUnwrappedContext()
public void setUnwrappedContext(WebModule wm)
public void setDirectoryListing(boolean directoryListing)
setDirectoryListing in class StandardContextdirectoryListing - true if directory listings are to be
enabled on this Context, false otherwisepublic boolean isDirectoryListing()
StandardContextisDirectoryListing in class StandardContextpublic void setSecurityConfig(SecurityConfig config)
setSecurityConfig in class WebModuleconfig - the security configuration for this contextSecurityConfigpublic SecurityConfig getSecurityConfig()
getSecurityConfig in class WebModuleSecurityConfigCopyright © 2017. All rights reserved.