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
ModifierConstructorDescriptionprotected
RequestEvent
(Object source, RequestContext requestContext) -
Method Summary
Modifier and TypeMethodDescriptionRetrieves theRequestContext
for the event.boolean
isHttp()
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 theRequestContext
for 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:
true
if the request is anHttpServletRequest
; otherwise,false
-