public abstract class

RequestEvent

extends EventObject
java.lang.Object
   ↳ java.util.EventObject
     ↳ com.atlassian.stash.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
RequestContext getRequestContext()
Retrieves the ServletRequest for the event.
boolean isHttp()
Retrieves a flag indicating whether the event's #getRequestContext().getRawRequest() request 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

public RequestContext getRequestContext ()

Retrieves the ServletRequest for the event.

Returns
  • the request

public boolean isHttp ()

Retrieves a flag indicating whether the event's #getRequestContext().getRawRequest() request is an HttpServletRequest.

Returns
  • true if the request is an HttpServletRequest; otherwise, false