com.ibm.websphere.servlet.context

Interface IBMServletContext

All Superinterfaces:
ExtendedServletContext

  1. public interface IBMServletContext
  2. extends ExtendedServletContext
Since:
WAS5.0

Method Summary

Modifier and Type Method and Description
  1. void
addDynamicServlet(java.lang.String servletName,java.lang.String servletClass,java.lang.String mappingURI,java.util.Properties initParameters)
Deprecated.
  1. void
addHttpSessionListener(HttpSessionListener listener)
Deprecated.
  1. void
fireSessionAttributeAdded(HttpSessionBindingEvent event)
To drive attribute added event
  1. void
fireSessionAttributeRemoved(HttpSessionBindingEvent event)
To drive attribute removed event
  1. void
fireSessionAttributeReplaced(HttpSessionBindingEvent event)
To drive attribute replaced event
  1. void
fireSessionCreated(HttpSessionEvent event)
To drive HttpSession created event
  1. void
fireSessionDestroyed(HttpSessionEvent event)
To drive HttpSession invalidated event
  1. java.lang.String
getContextPath()
To get the context root associated with this web module Returns the context root for this context
  1. int
getSessionTimeout()
To get at session timeout used by web module
  1. boolean
isSessionTimeoutSet()
To check if timeout is set in deployment descriptor of the web module(web.xml) or not
  1. void
loadServlet(java.lang.String servletName)
Deprecated.
  1. void
removeDynamicServlet(java.lang.String servletName)
Deprecated.
  1. void
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

  1. void fireSessionCreated(HttpSessionEvent event)
To drive HttpSession created event
Parameters:
event - object on which event is to be triggered.
Since:
WAS 5.0

fireSessionDestroyed

  1. void fireSessionDestroyed(HttpSessionEvent event)
To drive HttpSession invalidated event
Parameters:
event - object on which event is to be triggered.
Since:
WAS 5.0

fireSessionAttributeAdded

  1. void fireSessionAttributeAdded( HttpSessionBindingEvent event)
To drive attribute added event
Parameters:
event - object on which event is to be triggered.
Since:
WAS 5.0

fireSessionAttributeReplaced

  1. void fireSessionAttributeReplaced( HttpSessionBindingEvent event)
To drive attribute replaced event
Parameters:
event - object on which event is to be triggered
Since:
WAS 5.0

fireSessionAttributeRemoved

  1. void fireSessionAttributeRemoved( HttpSessionBindingEvent event)
To drive attribute removed event
Parameters:
event - object on which event is to be triggered
Since:
WAS 5.0

isSessionTimeoutSet

  1. 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

  1. int getSessionTimeout()
To get at session timeout used by web module
Returns:
returns session timeout of the web module.
Since:
WAS 5.0

getContextPath

  1. 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

  1. void addDynamicServlet(java.lang.String servletName,
  2. java.lang.String servletClass,
  3. java.lang.String mappingURI,
  4. java.util.Properties initParameters)
  5. throws ServletException
  6. 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

  1. void removeDynamicServlet(java.lang.String servletName)
  2. 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

  1. void addHttpSessionListener(HttpSessionListener listener)
  2. 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

  1. void loadServlet(java.lang.String servletName)
  2. throws ServletException
  3. 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

  1. void sendError(HttpServletRequest request,
  2. HttpServletResponse response,
  3. 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 -