Package org.apache.sling.api.request
Class SlingJakartaRequestEvent
java.lang.Object
org.apache.sling.api.request.SlingJakartaRequestEvent
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.8.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
type of the event -
Constructor Summary
ConstructorsConstructorDescriptionSlingJakartaRequestEvent
(jakarta.servlet.ServletContext sc, jakarta.servlet.ServletRequest request, SlingJakartaRequestEvent.EventType type) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.servlet.ServletContext
Gets the actual servlet context object asServletContext
jakarta.servlet.ServletRequest
Gets the actual request object asServletRequest
getType()
get the type of the event, eg.
-
Constructor Details
-
SlingJakartaRequestEvent
public SlingJakartaRequestEvent(jakarta.servlet.ServletContext sc, jakarta.servlet.ServletRequest request, SlingJakartaRequestEvent.EventType type)
-
-
Method Details
-
getServletContext
public jakarta.servlet.ServletContext getServletContext()Gets the actual servlet context object asServletContext
- Returns:
- the actual servlet context.
-
getServletRequest
public jakarta.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
-