Interface IBMServletContext
- 
- All Superinterfaces:
- ExtendedServletContext,- javax.servlet.ServletContext
 
 public interface IBMServletContext extends ExtendedServletContext - Since:
- WAS5.0
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidaddDynamicServlet(java.lang.String servletName, java.lang.String servletClass, java.lang.String mappingURI, java.util.Properties initParameters)Deprecated.voidaddHttpSessionListener(javax.servlet.http.HttpSessionListener listener)Deprecated.voidfireSessionAttributeAdded(javax.servlet.http.HttpSessionBindingEvent event)To drive attribute added eventvoidfireSessionAttributeRemoved(javax.servlet.http.HttpSessionBindingEvent event)To drive attribute removed eventvoidfireSessionAttributeReplaced(javax.servlet.http.HttpSessionBindingEvent event)To drive attribute replaced eventvoidfireSessionCreated(javax.servlet.http.HttpSessionEvent event)To drive HttpSession created eventvoidfireSessionDestroyed(javax.servlet.http.HttpSessionEvent event)To drive HttpSession invalidated eventjava.lang.StringgetContextPath()To get the context root associated with this web module Returns the context root for this contextintgetSessionTimeout()To get at session timeout used by web modulebooleanisSessionTimeoutSet()To check if timeout is set in deployment descriptor of the web module(web.xml) or notvoidloadServlet(java.lang.String servletName)Deprecated.voidremoveDynamicServlet(java.lang.String servletName)Deprecated.voidsendError(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ServletErrorReport e)Sends an error response back to the client.- 
Methods inherited from interface com.ibm.websphere.servlet.context.ExtendedServletContextaddMappingFilter, getAsyncRequestDispatcher, getDynamicServletRegistrations, getFilterConfig
 - 
Methods inherited from interface javax.servlet.ServletContextaddFilter, addFilter, addFilter, addListener, addListener, addListener, addServlet, addServlet, addServlet, createFilter, createListener, createServlet, declareRoles, getAttribute, getAttributeNames, getClassLoader, 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- 
fireSessionCreatedvoid fireSessionCreated(javax.servlet.http.HttpSessionEvent event) To drive HttpSession created event- Parameters:
- event- object on which event is to be triggered.
- Since:
- WAS 5.0
 
 - 
fireSessionDestroyedvoid fireSessionDestroyed(javax.servlet.http.HttpSessionEvent event) To drive HttpSession invalidated event- Parameters:
- event- object on which event is to be triggered.
- Since:
- WAS 5.0
 
 - 
fireSessionAttributeAddedvoid fireSessionAttributeAdded(javax.servlet.http.HttpSessionBindingEvent event) To drive attribute added event- Parameters:
- event- object on which event is to be triggered.
- Since:
- WAS 5.0
 
 - 
fireSessionAttributeReplacedvoid fireSessionAttributeReplaced(javax.servlet.http.HttpSessionBindingEvent event) To drive attribute replaced event- Parameters:
- event- object on which event is to be triggered
- Since:
- WAS 5.0
 
 - 
fireSessionAttributeRemovedvoid fireSessionAttributeRemoved(javax.servlet.http.HttpSessionBindingEvent event) To drive attribute removed event- Parameters:
- event- object on which event is to be triggered
- Since:
- WAS 5.0
 
 - 
isSessionTimeoutSetboolean isSessionTimeoutSet() To check if timeout is set in deployment descriptor of the web module(web.xml) or not- Returns:
- true if session timeout is set false if session timeout is set to zero or not set.
- Since:
- WAS 5.0
 
 - 
getSessionTimeoutint getSessionTimeout() To get at session timeout used by web module- Returns:
- returns session timeout of the web module.
- Since:
- WAS 5.0
 
 - 
getContextPathjava.lang.String getContextPath() To get the context root associated with this web module Returns the context root for this context- Specified by:
- getContextPathin interface- javax.servlet.ServletContext
- Returns:
- Since:
- WAS 6.1
 
 - 
addDynamicServletvoid addDynamicServlet(java.lang.String servletName, java.lang.String servletClass, java.lang.String mappingURI, java.util.Properties initParameters) throws javax.servlet.ServletException, java.lang.SecurityExceptionDeprecated.To add servlet instance dynamically into a web module. If a security manager exists, accessing this method requires com.ibm.websphere.security.WebSphereRuntimePermission with target name "accessServletContext".- Parameters:
- servletName- Name of the Servlet that is being added servletClass Class name of the servlet mappingURI URI for the servlet initParameters init parameters of the servlet
- Throws:
- java.lang.SecurityException- if a security manager exists and it doesn't allow the current operation . ServletException if a servlet with same name already exists
- javax.servlet.ServletException
- Since:
- WAS 5.01
 
 - 
removeDynamicServletvoid removeDynamicServlet(java.lang.String servletName) throws java.lang.SecurityExceptionDeprecated.To remove servlet instance dynamically from a web module. If a security manager exists, accessing this method requires com.ibm.websphere.security.WebSphereRuntimePermission with target name "accessServletContext".- Parameters:
- servletName- Name of the Servlet that is to be removed
- Throws:
- java.lang.SecurityException- if a security manager exists and it doesn't allow the current operation .
- Since:
- WAS 5.01
 
 - 
addHttpSessionListenervoid addHttpSessionListener(javax.servlet.http.HttpSessionListener listener) throws java.lang.SecurityExceptionDeprecated.To add session listener dynamically into a web module. If a security manager exists, accessing this method requires com.ibm.websphere.security.WebSphereRuntimePermission with target name "accessServletContext".- Parameters:
- listener- Instance of HttpSessionListener
- Throws:
- java.lang.SecurityException- if a security manager exists and it doesn't allow the current operation .
- Since:
- WAS 5.01
 
 - 
loadServletvoid loadServlet(java.lang.String servletName) throws javax.servlet.ServletException, java.lang.SecurityExceptionDeprecated.To load a servlet instance. If servlet is already loaded, this method simply returns. If a security manager exists, accessing this method requires com.ibm.websphere.security.WebSphereRuntimePermission with target name "accessServletContext".- Parameters:
- servletName- Name of the Servlet that is to be loaded
- Throws:
- java.lang.SecurityException- if a security manager exists and it doesn't allow the current operation . ServletException if a servlet with same name already exists
- javax.servlet.ServletException
- Since:
- WAS 5.01
 
 - 
sendErrorvoid sendError(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ServletErrorReport e)Sends an error response back to the client. This method will inspect the information in the servlet error report specified, and invoke any error pages that have been defined by this application.- Parameters:
- request-
- response-
- e-
 
 
- 
 
-