Class SlingRequestEvent


  • public class SlingRequestEvent
    extends java.lang.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:
    SlingRequestListener
    • Method Detail

      • getServletContext

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

        public 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