Object - http : ResponseFilter

Abstract Representation of a HTTP Response Filter. This filter will be applied in the response path. Any ResponseFilter implementation should be structurally similar to or implement the ResponseFilter object.

Methods

Response filter function. If a false is returned a 500 Internal Server Error would be sent to the client.

filterResponse

(Response response, FilterContext context)

returns boolean
Response filter function. If a false is returned a 500 Internal Server Error would be sent to the client.

Parameters

  • response Response
  • An outbound HTTP response message

  • Return Type

    (boolean)
  • True if the filter succeeds