com.ibm.websphere.servlet.context
Interface IBMServletContext
All Superinterfaces:
- public interface IBMServletContext
- extends ExtendedServletContext
Since:
WAS5.0
Method Summary
Modifier and Type | Method and Description |
---|---|
|
addDynamicServlet(java.lang.String servletName,java.lang.String servletClass,java.lang.String mappingURI,java.util.Properties initParameters)
Deprecated.
|
|
addHttpSessionListener(HttpSessionListener listener)
Deprecated.
|
|
fireSessionAttributeAdded(HttpSessionBindingEvent event)
To drive attribute added event
|
|
fireSessionAttributeRemoved(HttpSessionBindingEvent event)
To drive attribute removed event
|
|
fireSessionAttributeReplaced(HttpSessionBindingEvent event)
To drive attribute replaced event
|
|
fireSessionCreated(HttpSessionEvent event)
To drive HttpSession created event
|
|
fireSessionDestroyed(HttpSessionEvent event)
To drive HttpSession invalidated event
|
|
getContextPath()
To get the context root associated with this web module
Returns the context root for this context
|
|
getSessionTimeout()
To get at session timeout used by web module
|
|
isSessionTimeoutSet()
To check if timeout is set in deployment descriptor of the web module(web.xml) or not
|
|
loadServlet(java.lang.String servletName)
Deprecated.
|
|
removeDynamicServlet(java.lang.String servletName)
Deprecated.
|
|
sendError(HttpServletRequest request,HttpServletResponse response,ServletErrorReport e)
Sends an error response back to the client.
|
Methods inherited from interface com.ibm.websphere.servlet.context.ExtendedServletContext |
---|
addMappingFilter, getAsyncRequestDispatcher, getDynamicServletRegistrations, getFilterConfig |
Method Detail
fireSessionCreated
- void fireSessionCreated(HttpSessionEvent event)
To drive HttpSession created event
Parameters:
event
- object on which event is to be triggered. Since:
WAS 5.0
fireSessionDestroyed
- void fireSessionDestroyed(HttpSessionEvent event)
To drive HttpSession invalidated event
Parameters:
event
- object on which event is to be triggered. Since:
WAS 5.0
fireSessionAttributeAdded
- void fireSessionAttributeAdded( HttpSessionBindingEvent event)
To drive attribute added event
Parameters:
event
- object on which event is to be triggered. Since:
WAS 5.0
fireSessionAttributeReplaced
- void fireSessionAttributeReplaced( HttpSessionBindingEvent event)
To drive attribute replaced event
Parameters:
event
- object on which event is to be triggered Since:
WAS 5.0
fireSessionAttributeRemoved
- void fireSessionAttributeRemoved( HttpSessionBindingEvent event)
To drive attribute removed event
Parameters:
event
- object on which event is to be triggered Since:
WAS 5.0
isSessionTimeoutSet
- boolean 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
getSessionTimeout
- int getSessionTimeout()
To get at session timeout used by web module
Returns:
returns session timeout of the web module.
Since:
WAS 5.0
getContextPath
- java.lang.String getContextPath( )
To get the context root associated with this web module
Returns the context root for this context
Returns:
Since:
WAS 6.1
addDynamicServlet
- void addDynamicServlet(java.lang.String servletName,
- java.lang.String servletClass,
- java.lang.String mappingURI,
- java.util.Properties initParameters)
- throws ServletException
- java.lang.SecurityException
Deprecated.
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 ServletException
Since:
WAS 5.01
removeDynamicServlet
- void removeDynamicServlet(java.lang.String servletName)
- throws java.lang.SecurityException
Deprecated.
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
addHttpSessionListener
- void addHttpSessionListener(HttpSessionListener listener)
- throws java.lang.SecurityException
Deprecated.
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
loadServlet
- void loadServlet(java.lang.String servletName)
- throws ServletException
- java.lang.SecurityException
Deprecated.
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 ServletException
Since:
WAS 5.01
sendError
- void sendError(HttpServletRequest request,
- 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
-