|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IServletContext
This is an extension to IBMServletContext which can be used to
Field Summary |
---|
Fields inherited from interface javax.servlet.ServletContext |
---|
ORDERED_LIBS, TEMPDIR |
Method Summary | |
---|---|
void |
addFeature(com.ibm.wsspi.webcontainer.WebContainerConstants.Feature feature)
Used to indicate that a Feature is enabled for this context. |
void |
addLifecycleListener(java.util.EventListener eventListener)
Adds a lifecycle event listener to this context. |
void |
addMappingFilter(IServletConfig sConfig,
IFilterConfig config)
Adds a filter against a specified servlet config into this context |
void |
addMappingFilter(java.lang.String mapping,
IFilterConfig config)
Adds a filter against a specified mapping into this context |
void |
addMappingTarget(java.lang.String mapping,
RequestProcessor target)
Adds a target against a specified mapping into this context |
void |
addToStartWeightList(IServletConfig sc)
|
boolean |
containsTargetMapping(java.lang.String mapping)
|
IFilterConfig |
createFilterConfig(java.lang.String id)
Creates a IFilterConfig object for this context |
IServletWrapper |
createServletWrapper(IServletConfig sconfig)
Convenience method that creates an IServletWrapper given the servlet config. |
void |
finishEnvSetup(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.ClassLoader |
getClassLoader()
Returns the classLoader that this context used to load its resources |
com.ibm.wsspi.webcontainer.collaborator.ICollaboratorHelper |
getCollaboratorHelper()
|
java.lang.String |
getCommonTempDirectory()
|
javax.servlet.ServletContext |
getFacade()
Called by components utilizing IServletContext (ie session) that provide access to a ServletContext object to applications. |
WebAppFilterManager |
getFilterManager()
Returns the web app filter manager associated with this context. |
RequestProcessor |
getMappingTarget(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.Container |
getModuleContainer()
|
java.util.Set |
getResourcePaths(java.lang.String path,
boolean searchMetaInf)
|
com.ibm.ws.webcontainer.session.IHttpSessionContext |
getSessionContext()
|
WebComponentMetaData |
getWebAppCmd()
|
WebAppConfig |
getWebAppConfig()
Returns the configuration object associated with this context |
com.ibm.ws.webcontainer.spiadapter.collaborator.IInvocationCollaborator[] |
getWebAppInvocationCollaborators()
|
boolean |
isCachingEnabled()
|
boolean |
isFeatureEnabled(com.ibm.wsspi.webcontainer.WebContainerConstants.Feature feature)
|
boolean |
isFiltersDefined()
Returns whether or not filters are defined with this context. |
boolean |
isInitialized()
|
void |
removeLifeCycleListener(java.util.EventListener eventListener)
Removes an existing listener from this context's list of listeners. |
void |
replaceMappingTarget(java.lang.String mapping,
RequestProcessor target)
Replaces the target for the specified mapping in this context |
void |
startEnvSetup(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.Iterator |
targets()
Returns an iterator of all the targets currently loaded (not necessarily initialized) by this context. |
Methods inherited from interface com.ibm.websphere.servlet.context.IBMServletContext |
---|
addDynamicServlet, addHttpSessionListener, fireSessionAttributeAdded, fireSessionAttributeRemoved, fireSessionAttributeReplaced, fireSessionCreated, fireSessionDestroyed, getContextPath, getSessionTimeout, isSessionTimeoutSet, loadServlet, removeDynamicServlet, sendError |
Methods inherited from interface com.ibm.websphere.servlet.context.ExtendedServletContext |
---|
addMappingFilter, getAsyncRequestDispatcher, getDynamicServletRegistrations, getFilterConfig |
Methods inherited from interface javax.servlet.ServletContext |
---|
addFilter, 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 |
---|
void addLifecycleListener(java.util.EventListener eventListener)
eventListener
- void removeLifeCycleListener(java.util.EventListener eventListener)
eventListener
- WebAppConfig getWebAppConfig()
WebAppFilterManager getFilterManager()
boolean isFiltersDefined()
IServletWrapper createServletWrapper(IServletConfig sconfig) throws java.lang.Exception
sconfig
-
java.lang.Exception
java.util.Iterator targets()
RequestProcessor getMappingTarget(java.lang.String mapping)
mapping
-
void addMappingTarget(java.lang.String mapping, RequestProcessor target) throws java.lang.Exception
mapping
- target
-
java.lang.Exception
boolean containsTargetMapping(java.lang.String mapping)
void replaceMappingTarget(java.lang.String mapping, RequestProcessor target) throws java.lang.Exception
mapping
- target
-
java.lang.Exception
IFilterConfig createFilterConfig(java.lang.String id)
id
-
void addMappingFilter(java.lang.String mapping, IFilterConfig config)
mapping
- config
- void addMappingFilter(IServletConfig sConfig, IFilterConfig config)
sConfig
- config
- java.lang.ClassLoader getClassLoader()
getClassLoader
in interface javax.servlet.ServletContext
void startEnvSetup(boolean transactional) throws java.lang.Exception
transactional
-
java.lang.Exception
void finishEnvSetup(boolean transactional) throws java.lang.Exception
transactional
-
java.lang.Exception
void addFeature(com.ibm.wsspi.webcontainer.WebContainerConstants.Feature feature)
feature
- boolean isFeatureEnabled(com.ibm.wsspi.webcontainer.WebContainerConstants.Feature feature)
javax.servlet.ServletContext getFacade()
com.ibm.wsspi.webcontainer.collaborator.ICollaboratorHelper getCollaboratorHelper()
java.lang.String getCommonTempDirectory()
boolean isCachingEnabled()
com.ibm.ws.webcontainer.spiadapter.collaborator.IInvocationCollaborator[] getWebAppInvocationCollaborators()
com.ibm.ws.webcontainer.session.IHttpSessionContext getSessionContext()
void addToStartWeightList(IServletConfig sc)
boolean isInitialized()
WebComponentMetaData getWebAppCmd()
java.util.Set getResourcePaths(java.lang.String path, boolean searchMetaInf)
com.ibm.wsspi.adaptable.module.Container getModuleContainer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |