|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IBMServletContext
Field Summary |
---|
Fields inherited from interface javax.servlet.ServletContext |
---|
ORDERED_LIBS, TEMPDIR |
Method Summary | |
---|---|
void |
addDynamicServlet(java.lang.String servletName,
java.lang.String servletClass,
java.lang.String mappingURI,
java.util.Properties initParameters)
Deprecated. |
void |
addHttpSessionListener(javax.servlet.http.HttpSessionListener listener)
Deprecated. |
void |
fireSessionAttributeAdded(javax.servlet.http.HttpSessionBindingEvent event)
To drive attribute added event |
void |
fireSessionAttributeRemoved(javax.servlet.http.HttpSessionBindingEvent event)
To drive attribute removed event |
void |
fireSessionAttributeReplaced(javax.servlet.http.HttpSessionBindingEvent event)
To drive attribute replaced event |
void |
fireSessionCreated(javax.servlet.http.HttpSessionEvent event)
To drive HttpSession created event |
void |
fireSessionDestroyed(javax.servlet.http.HttpSessionEvent event)
To drive HttpSession invalidated event |
java.lang.String |
getContextPath()
To get the context root associated with this web module Returns the context root for this context |
int |
getSessionTimeout()
To get at session timeout used by web module |
boolean |
isSessionTimeoutSet()
To check if timeout is set in deployment descriptor of the web module(web.xml) or not |
void |
loadServlet(java.lang.String servletName)
Deprecated. |
void |
removeDynamicServlet(java.lang.String servletName)
Deprecated. |
void |
sendError(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.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, 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 |
---|
void fireSessionCreated(javax.servlet.http.HttpSessionEvent event)
event
- object on which event is to be triggered.void fireSessionDestroyed(javax.servlet.http.HttpSessionEvent event)
event
- object on which event is to be triggered.void fireSessionAttributeAdded(javax.servlet.http.HttpSessionBindingEvent event)
event
- object on which event is to be triggered.void fireSessionAttributeReplaced(javax.servlet.http.HttpSessionBindingEvent event)
event
- object on which event is to be triggeredvoid fireSessionAttributeRemoved(javax.servlet.http.HttpSessionBindingEvent event)
event
- object on which event is to be triggeredboolean isSessionTimeoutSet()
int getSessionTimeout()
java.lang.String getContextPath()
getContextPath
in interface javax.servlet.ServletContext
void addDynamicServlet(java.lang.String servletName, java.lang.String servletClass, java.lang.String mappingURI, java.util.Properties initParameters) throws javax.servlet.ServletException, java.lang.SecurityException
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
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
void removeDynamicServlet(java.lang.String servletName) throws java.lang.SecurityException
servletName
- Name of the Servlet that is to be removed
java.lang.SecurityException
- if a security manager exists and it doesn't allow the current operation .void addHttpSessionListener(javax.servlet.http.HttpSessionListener listener) throws java.lang.SecurityException
listener
- Instance of HttpSessionListener
java.lang.SecurityException
- if a security manager exists and it doesn't allow the current operation .void loadServlet(java.lang.String servletName) throws javax.servlet.ServletException, java.lang.SecurityException
servletName
- Name of the Servlet that is to be loaded
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
void sendError(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ServletErrorReport e)
request
- response
- e
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |