com.ibm.websphere.servlet.event

Class ServletInvocationEvent

  1. java.lang.Object
  2. extended byjava.util.EventObject
  3. extended bycom.ibm.websphere.servlet.event.ApplicationEvent
  4. extended bycom.ibm.websphere.servlet.event.ServletEvent
  5. extended bycom.ibm.websphere.servlet.event.ServletInvocationEvent
All implemented interfaces:
java.io.Serializable

  1. public abstract class ServletInvocationEvent
  2. extends ServletEvent
Event that reports information about a servlet invocation. IBM
See Also:
Serialized Form

Field Summary

Modifier and Type Field and Description
  1. protected static
  2. java.util.logging.Logger
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
  1. javax.servlet.http.HttpServletRequest
getRequest()
Get the request used for the servlet invocation.
  1. java.lang.String
getRequestURL()
Get the URL of this invocation.
  1. javax.servlet.http.HttpServletResponse
getResponse()
Get the response used for the servlet invocation.
  1. abstract
  2. long
getResponseTime()
Get the amount of time it took the servlet generate its response.
  1. void
setRequest(javax.servlet.http.HttpServletRequest req)
  1. void
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

  1. protected static java.util.logging.Logger logger

Constructor Detail

ServletInvocationEvent

  1. public ServletInvocationEvent(java.lang.Object source,
  2. javax.servlet.ServletContext context,
  3. java.lang.String servletName,
  4. java.lang.String servletClassName,
  5. javax.servlet.ServletRequest req,
  6. javax.servlet.ServletResponse resp)
ServletInvocationEvent constructor

Method Detail

getRequestURL

  1. public java.lang.String getRequestURL( )
Get the URL of this invocation.

getResponseTime

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

  1. public javax.servlet.http.HttpServletRequest getRequest( )
Get the request used for the servlet invocation.

getResponse

  1. public javax.servlet.http.HttpServletResponse getResponse( )
Get the response used for the servlet invocation.

setRequest

  1. public void setRequest(javax.servlet.http.HttpServletRequest req)

setResponse

  1. public void setResponse(javax.servlet.http.HttpServletResponse res)