Interface IServletContext
- 
- All Superinterfaces:
- com.ibm.websphere.servlet.context.ExtendedServletContext,- com.ibm.websphere.servlet.context.IBMServletContext,- javax.servlet.ServletContext
 
 public interface IServletContext extends com.ibm.websphere.servlet.context.IBMServletContextThis is an extension to IBMServletContext which can be used to
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddFeature(com.ibm.websphere.servlet.container.WebContainer.Feature feature)Used to indicate that a Feature is enabled for this context.voidaddLifecycleListener(java.util.EventListener eventListener)Adds a lifecycle event listener to this context.voidaddMappingFilter(IServletConfig sConfig, IFilterConfig config)Adds a filter against a specified servlet config into this contextvoidaddMappingFilter(java.lang.String mapping, IFilterConfig config)Adds a filter against a specified mapping into this contextvoidaddMappingTarget(java.lang.String mapping, RequestProcessor target)Adds a target against a specified mapping into this contextvoidaddToStartWeightList(IServletConfig sc)booleancontainsTargetMapping(java.lang.String mapping)IFilterConfigcreateFilterConfig(java.lang.String id)Creates a IFilterConfig object for this contextIServletWrappercreateServletWrapper(IServletConfig sconfig)Convenience method that creates an IServletWrapper given the servlet config.voidfinishEnvSetup(boolean transactional)Called by components leveraging the webcontainer to tear down the environment that was setup by a previous call to startEnvSetup(); (1) Namespace - to enable namespace lookups (2) Setup the classloader on the thread to be that of the WebApp.java.lang.ClassLoadergetClassLoader()Returns the classLoader that this context used to load its resourcesjava.lang.StringgetCommonTempDirectory()javax.servlet.ServletContextgetFacade()Called by components utilizing IServletContext (ie session) that provide access to a ServletContext object to applications.WebAppFilterManagergetFilterManager()Returns the web app filter manager associated with this context.RequestProcessorgetMappingTarget(java.lang.String mapping)Returns the target that matches (according to the rules under servlet mappings in the servlet spec.) the given mapping.com.ibm.wsspi.adaptable.module.ContainergetModuleContainer()java.util.SetgetResourcePaths(java.lang.String path, boolean searchMetaInf)WebComponentMetaDatagetWebAppCmd()WebAppConfiggetWebAppConfig()Returns the configuration object associated with this contextIInvocationCollaborator[]getWebAppInvocationCollaborators()booleanisCachingEnabled()booleanisFeatureEnabled(com.ibm.websphere.servlet.container.WebContainer.Feature feature)booleanisFiltersDefined()Returns whether or not filters are defined with this context.booleanisInitialized()voidremoveLifeCycleListener(java.util.EventListener eventListener)Removes an existing listener from this context's list of listeners.voidreplaceMappingTarget(java.lang.String mapping, RequestProcessor target)Replaces the target for the specified mapping in this contextvoidstartEnvSetup(boolean transactional)Called by components leveraging the webcontainer to set up the environments necessary (1) Namespace - to enable namespace lookups (2) Setup the classloader on the thread to be that of the WebApp.java.util.Iteratortargets()Returns an iterator of all the targets currently loaded (not necessarily initialized) by this context.- 
Methods inherited from interface com.ibm.websphere.servlet.context.ExtendedServletContextaddMappingFilter, getAsyncRequestDispatcher, getDynamicServletRegistrations, getFilterConfig
 - 
Methods inherited from interface com.ibm.websphere.servlet.context.IBMServletContextaddDynamicServlet, addHttpSessionListener, fireSessionAttributeAdded, fireSessionAttributeRemoved, fireSessionAttributeReplaced, fireSessionCreated, fireSessionDestroyed, getContextPath, getSessionTimeout, isSessionTimeoutSet, loadServlet, removeDynamicServlet, sendError
 - 
Methods inherited from interface javax.servlet.ServletContextaddFilter, addFilter, addFilter, addListener, addListener, addListener, addServlet, addServlet, addServlet, createFilter, createListener, createServlet, declareRoles, getAttribute, getAttributeNames, getContext, getDefaultSessionTrackingModes, getEffectiveMajorVersion, getEffectiveMinorVersion, getEffectiveSessionTrackingModes, getFilterRegistration, getFilterRegistrations, getInitParameter, getInitParameterNames, getJspConfigDescriptor, getMajorVersion, getMimeType, getMinorVersion, getNamedDispatcher, getRealPath, getRequestDispatcher, getResource, getResourceAsStream, getResourcePaths, getServerInfo, getServlet, getServletContextName, getServletNames, getServletRegistration, getServletRegistrations, getServlets, getSessionCookieConfig, log, log, log, removeAttribute, setAttribute, setInitParameter, setSessionTrackingModes
 
- 
 
- 
- 
- 
Method Detail- 
addLifecycleListenervoid addLifecycleListener(java.util.EventListener eventListener) Adds a lifecycle event listener to this context. The listner can be any of the standard listeners mandated by the Servlet 2.4 specification.- Parameters:
- eventListener-
 
 - 
removeLifeCycleListenervoid removeLifeCycleListener(java.util.EventListener eventListener) Removes an existing listener from this context's list of listeners. NOTE: Listeners of the type HttpSessionListener && HttpSessionIdListener currently have no way of being removed.- Parameters:
- eventListener-
 
 - 
getWebAppConfigWebAppConfig getWebAppConfig() Returns the configuration object associated with this context- Returns:
 
 - 
getFilterManagerWebAppFilterManager getFilterManager() Returns the web app filter manager associated with this context.- Returns:
 
 - 
isFiltersDefinedboolean isFiltersDefined() Returns whether or not filters are defined with this context.- Returns:
 
 - 
createServletWrapperIServletWrapper createServletWrapper(IServletConfig sconfig) throws java.lang.Exception Convenience method that creates an IServletWrapper given the servlet config.- Parameters:
- sconfig-
- Returns:
- Throws:
- java.lang.Exception
 
 - 
targetsjava.util.Iterator targets() Returns an iterator of all the targets currently loaded (not necessarily initialized) by this context. The target objects are all RequestProcessors, and may be either IServletWrappers or ExtensionProcessors- Returns:
 
 - 
getMappingTargetRequestProcessor getMappingTarget(java.lang.String mapping) Returns the target that matches (according to the rules under servlet mappings in the servlet spec.) the given mapping.- Parameters:
- mapping-
- Returns:
 
 - 
addMappingTargetvoid addMappingTarget(java.lang.String mapping, RequestProcessor target) throws java.lang.ExceptionAdds a target against a specified mapping into this context- Parameters:
- mapping-
- target-
- Throws:
- java.lang.Exception
 
 - 
containsTargetMappingboolean containsTargetMapping(java.lang.String mapping) 
 - 
replaceMappingTargetvoid replaceMappingTarget(java.lang.String mapping, RequestProcessor target) throws java.lang.ExceptionReplaces the target for the specified mapping in this context- Parameters:
- mapping-
- target-
- Throws:
- java.lang.Exception
 
 - 
createFilterConfigIFilterConfig createFilterConfig(java.lang.String id) Creates a IFilterConfig object for this context- Parameters:
- id-
- Returns:
 
 - 
addMappingFiltervoid addMappingFilter(java.lang.String mapping, IFilterConfig config)Adds a filter against a specified mapping into this context- Parameters:
- mapping-
- config-
 
 - 
addMappingFiltervoid addMappingFilter(IServletConfig sConfig, IFilterConfig config) Adds a filter against a specified servlet config into this context- Parameters:
- sConfig-
- config-
 
 - 
getClassLoaderjava.lang.ClassLoader getClassLoader() Returns the classLoader that this context used to load its resources- Specified by:
- getClassLoaderin interface- javax.servlet.ServletContext
- Returns:
 
 - 
startEnvSetupvoid startEnvSetup(boolean transactional) throws java.lang.ExceptionCalled by components leveraging the webcontainer to set up the environments necessary (1) Namespace - to enable namespace lookups (2) Setup the classloader on the thread to be that of the WebApp. (3) Depending on the transactional parameter passed, setup transaction related environment- Parameters:
- transactional-
- Throws:
- java.lang.Exception
 
 - 
finishEnvSetupvoid finishEnvSetup(boolean transactional) throws java.lang.ExceptionCalled by components leveraging the webcontainer to tear down the environment that was setup by a previous call to startEnvSetup(); (1) Namespace - to enable namespace lookups (2) Setup the classloader on the thread to be that of the WebApp. (3) Depending on the transactional parameter passed, setup transaction related environment- Parameters:
- transactional-
- Throws:
- java.lang.Exception
 
 - 
addFeaturevoid addFeature(com.ibm.websphere.servlet.container.WebContainer.Feature feature) Used to indicate that a Feature is enabled for this context.- Parameters:
- feature-
 
 - 
isFeatureEnabledboolean isFeatureEnabled(com.ibm.websphere.servlet.container.WebContainer.Feature feature) 
 - 
getFacadejavax.servlet.ServletContext getFacade() Called by components utilizing IServletContext (ie session) that provide access to a ServletContext object to applications. Since IServletContext provides access to webcontainer internals, components are allowed to only expose the facade object to applications and not the enhanced WebContainer ServletContext implementation IServletContext.- Returns:
 
 - 
getCommonTempDirectoryjava.lang.String getCommonTempDirectory() 
 - 
isCachingEnabledboolean isCachingEnabled() 
 - 
getWebAppInvocationCollaboratorsIInvocationCollaborator[] getWebAppInvocationCollaborators() 
 - 
addToStartWeightListvoid addToStartWeightList(IServletConfig sc) 
 - 
isInitializedboolean isInitialized() 
 - 
getWebAppCmdWebComponentMetaData getWebAppCmd() 
 - 
getResourcePathsjava.util.Set getResourcePaths(java.lang.String path, boolean searchMetaInf)
 - 
getModuleContainercom.ibm.wsspi.adaptable.module.Container getModuleContainer() 
 
- 
 
-