Class RequestEvent

java.lang.Object
java.util.EventObject
com.atlassian.bitbucket.event.request.RequestEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
RequestEndedEvent, RequestStartedEvent

public abstract class RequestEvent extends EventObject
A base class for constructing events related to requests (i.e. HTTP and SSH requests).
See Also:
  • Constructor Details

    • RequestEvent

      protected RequestEvent(@Nonnull Object source, @Nonnull RequestContext requestContext)
  • Method Details

    • getRequestContext

      @Nonnull public RequestContext getRequestContext()
      Retrieves the RequestContext for the event.
      Returns:
      the request
    • isHttp

      public boolean isHttp()
      Retrieves a flag indicating whether the event's request, available from the request context, is an HttpServletRequest.
      Returns:
      true if the request is an HttpServletRequest; otherwise, false