Object - http : RequestFilter

Abstract Representation of a HTTP Request Filter. This filter will be applied before the request is dispatched to the relevant resource. Any RequestFilter implementation should be structurally similar to or implement the RequestFilter object.

filterRequest

(Caller caller, Request request, FilterContext context)

returns boolean

Request filter function. If a false is returned the response should have been sent from this function as it will not be dispatched to the next filter or the resource.

Parameters

  • caller Caller
  • The http caller

  • request Request
  • An inbound HTTP request message

  • Return Type

    (boolean)
  • True if the filter succeeds