Package com.ibm.websphere.servlet.event
Class ServletInvocationEvent
- java.lang.Object
- 
- java.util.EventObject
- 
- com.ibm.websphere.servlet.event.ApplicationEvent
- 
- com.ibm.websphere.servlet.event.ServletEvent
- 
- com.ibm.websphere.servlet.event.ServletInvocationEvent
 
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public abstract class ServletInvocationEvent extends ServletEvent Event that reports information about a servlet invocation. IBM- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description ServletInvocationEvent(java.lang.Object source, javax.servlet.ServletContext context, java.lang.String servletName, java.lang.String servletClassName, javax.servlet.ServletRequest req, javax.servlet.ServletResponse resp)ServletInvocationEvent constructor
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description javax.servlet.http.HttpServletRequestgetRequest()Get the request used for the servlet invocation.java.lang.StringgetRequestURL()Get the URL of this invocation.javax.servlet.http.HttpServletResponsegetResponse()Get the response used for the servlet invocation.abstract longgetResponseTime()Get the amount of time it took the servlet generate its response.voidsetRequest(javax.servlet.http.HttpServletRequest req)voidsetResponse(javax.servlet.http.HttpServletResponse res)- 
Methods inherited from class com.ibm.websphere.servlet.event.ServletEventgetServletClassName, getServletName
 - 
Methods inherited from class com.ibm.websphere.servlet.event.ApplicationEventgetServletContext, getServletNames
 
- 
 
- 
- 
- 
Constructor Detail- 
ServletInvocationEventpublic ServletInvocationEvent(java.lang.Object source, javax.servlet.ServletContext context, java.lang.String servletName, java.lang.String servletClassName, javax.servlet.ServletRequest req, javax.servlet.ServletResponse resp)ServletInvocationEvent constructor
 
- 
 - 
Method Detail- 
getRequestURLpublic java.lang.String getRequestURL() Get the URL of this invocation.
 - 
getResponseTimepublic abstract long getResponseTime() Get the amount of time it took the servlet generate its response. This time is based on the the difference between the start and finish time of the service method. This property is only useful after the service method of the servlet has finished execution, otherwise it returns -1.
 - 
getRequestpublic javax.servlet.http.HttpServletRequest getRequest() Get the request used for the servlet invocation.
 - 
getResponsepublic javax.servlet.http.HttpServletResponse getResponse() Get the response used for the servlet invocation.
 - 
setRequestpublic void setRequest(javax.servlet.http.HttpServletRequest req) 
 - 
setResponsepublic void setResponse(javax.servlet.http.HttpServletResponse res) 
 
- 
 
-