Class SlingRequestEvent

java.lang.Object
org.apache.sling.api.request.SlingRequestEvent

public class SlingRequestEvent extends Object
represents an event published by the Sling engine while dispatching a request.

This class is not intended to be extended or instantiated by clients.

Since:
2.1.0 (Sling API Bundle 2.1.0)
See Also:
  • Constructor Details

    • SlingRequestEvent

      public SlingRequestEvent(javax.servlet.ServletContext sc, javax.servlet.ServletRequest request, SlingRequestEvent.EventType type)
  • Method Details

    • getServletContext

      public javax.servlet.ServletContext getServletContext()
      Gets the actual servlet context object as ServletContext
      Returns:
      the actual servlet context.
    • getServletRequest

      public javax.servlet.ServletRequest getServletRequest()
      Gets the actual request object as ServletRequest
      Returns:
      the actual request object as ServletRequest
    • getType

      public SlingRequestEvent.EventType getType()
      get the type of the event, eg. EVENT_INIT or EVENT_DESTROY
      Returns:
      the type of the event as EventType, eg. EVENT_INIT or EVENT_DESTROY