Package org.apache.sling.api.request
Class SlingRequestEvent
- java.lang.Object
-
- org.apache.sling.api.request.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SlingRequestEvent.EventType
type of the event
-
Constructor Summary
Constructors Constructor Description SlingRequestEvent(ServletContext sc, ServletRequest request, SlingRequestEvent.EventType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServletContext
getServletContext()
Gets the actual servlet context object asServletContext
ServletRequest
getServletRequest()
Gets the actual request object asServletRequest
SlingRequestEvent.EventType
getType()
get the type of the event, eg.
-
-
-
Constructor Detail
-
SlingRequestEvent
public SlingRequestEvent(ServletContext sc, ServletRequest request, SlingRequestEvent.EventType type)
-
-
Method Detail
-
getServletContext
public ServletContext getServletContext()
Gets the actual servlet context object asServletContext
- Returns:
- the actual servlet context.
-
getServletRequest
public ServletRequest getServletRequest()
Gets the actual request object asServletRequest
- 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
-
-