Package org.apache.sling.api.request
Class SlingRequestEvent
java.lang.Object
org.apache.sling.api.request.SlingRequestEvent
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:
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionSlingRequestEvent
(javax.servlet.ServletContext sc, javax.servlet.ServletRequest request, SlingRequestEvent.EventType type) -
Method Summary
Modifier and TypeMethodDescriptionjavax.servlet.ServletContext
Gets the actual servlet context object asServletContext
javax.servlet.ServletRequest
Gets the actual request object asServletRequest
getType()
get the type of the event, eg.
-
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 asServletContext
- Returns:
- the actual servlet context.
-
getServletRequest
public javax.servlet.ServletRequest getServletRequest()Gets the actual request object asServletRequest
- Returns:
- the actual request object as
ServletRequest
-
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
-