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
See Also:
Field Summary
Modifier and Type | Field and Description |
---|---|
|
logger
|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary
Constructor and 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 Summary
Modifier and Type | Method and Description |
---|---|
|
getRequest()
Get the request used for the servlet invocation.
|
|
getRequestURL()
Get the URL of this invocation.
|
|
getResponse()
Get the response used for the servlet invocation.
|
|
getResponseTime()
Get the amount of time it took the servlet generate its response.
|
|
setRequest(javax.servlet.http.HttpServletRequest req)
|
|
setResponse(javax.servlet.http.HttpServletResponse res)
|
Methods inherited from class com.ibm.websphere.servlet.event.ServletEvent |
---|
getServletClassName, getServletName |
Methods inherited from class com.ibm.websphere.servlet.event.ApplicationEvent |
---|
getServletContext, getServletNames |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail
logger
- protected static java.util.logging.Logger logger
Constructor Detail
ServletInvocationEvent
- public 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
getRequestURL
- public java.lang.String getRequestURL( )
Get the URL of this invocation.
getResponseTime
- public 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.
getRequest
- public javax.servlet.http.HttpServletRequest getRequest( )
Get the request used for the servlet invocation.
getResponse
- public javax.servlet.http.HttpServletResponse getResponse( )
Get the response used for the servlet invocation.
setRequest
- public void setRequest(javax.servlet.http.HttpServletRequest req)
setResponse
- public void setResponse(javax.servlet.http.HttpServletResponse res)