Class RequestEvent
java.lang.Object
java.util.EventObject
com.atlassian.bitbucket.event.request.RequestEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
RequestEndedEvent,RequestStartedEvent
A base class for constructing events related to requests (i.e. HTTP and SSH requests).
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRequestEvent(Object source, RequestContext requestContext) -
Method Summary
Modifier and TypeMethodDescriptionRetrieves theRequestContextfor the event.booleanisHttp()Retrieves a flag indicating whether the event's request, available from therequest context, is anHttpServletRequest.Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
RequestEvent
-
-
Method Details
-
getRequestContext
Retrieves theRequestContextfor the event.- Returns:
- the request
-
isHttp
public boolean isHttp()Retrieves a flag indicating whether the event's request, available from therequest context, is anHttpServletRequest.- Returns:
trueif the request is anHttpServletRequest; otherwise,false
-