Class ServletInvocationEvent

All Implemented Interfaces:
Serializable

public abstract class ServletInvocationEvent extends ServletEvent
Event that reports information about a servlet invocation. IBM
See Also:
  • Constructor Details

    • ServletInvocationEvent

      public ServletInvocationEvent(Object source, jakarta.servlet.ServletContext context, String servletName, String servletClassName, jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse resp)
      ServletInvocationEvent constructor
  • Method Details

    • getRequestURL

      public 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 jakarta.servlet.http.HttpServletRequest getRequest()
      Get the request used for the servlet invocation.
    • getResponse

      public jakarta.servlet.http.HttpServletResponse getResponse()
      Get the response used for the servlet invocation.
    • setRequest

      public void setRequest(jakarta.servlet.http.HttpServletRequest req)
    • setResponse

      public void setResponse(jakarta.servlet.http.HttpServletResponse res)