HttpRequestEvent

public class HttpRequestEvent

HttpRequestEvent represents an event of an HTTP request.

Author:Hugo Y. K. Lam

Constructors

HttpRequestEvent

HttpRequestEvent()

Creates a new instance of HttpRequestEvent.

HttpRequestEvent

HttpRequestEvent(String pathInfo, HttpServletRequest request, HttpServletResponse response)

Creates a new instance of HttpRequestEvent.

Parameters:
  • pathInfo – the path information.
  • request – the request object.
  • response – the response object.

Methods

getPathInfo

public String getPathInfo()

Gets the path information.

Returns:the path information.

getRequest

public HttpServletRequest getRequest()

Gets the request object.

Returns:the request object.

getResponse

public HttpServletResponse getResponse()

Gets the response object.

Returns:the response object.

setPathInfo

void setPathInfo(String pathInfo)

Sets the path information.

Parameters:
  • pathInfo – the path information.

setRequest

void setRequest(HttpServletRequest request)

Sets the request object.

Parameters:
  • request – the request object.

setResponse

void setResponse(HttpServletResponse response)

Sets the response object.

Parameters:
  • response – the response object.

toString

public String toString()

Returns a string representation of this event.

Returns:a string representation of this event.

See also: java.lang.Object.toString()