public abstract class

RequestEvent

extends EventObject
java.lang.Object
   ↳ java.util.EventObject
     ↳ com.atlassian.bitbucket.event.request.RequestEvent
Known Direct Subclasses

Class Overview

A base class for constructing events related to requests (i.e. HTTP and SSH requests).

Summary

[Expand]
Inherited Fields
From class java.util.EventObject
Protected Constructors
RequestEvent(Object source, RequestContext requestContext)
Public Methods
@Nonnull RequestContext getRequestContext()
Retrieves the RequestContext for the event.
boolean isHttp()
Retrieves a flag indicating whether the event's request, available from the request context, is an HttpServletRequest.
[Expand]
Inherited Methods
From class java.util.EventObject
From class java.lang.Object

Protected Constructors

protected RequestEvent (Object source, RequestContext requestContext)

Public Methods

@Nonnull public RequestContext getRequestContext ()

Retrieves the RequestContext for the event.

Returns
  • the request

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