Interface IResponseFilter

All Known Implementing Classes:
EmptySrcAttributeCheckFilter, XmlCleaningResponseFilter
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

A response filter can be added to the RequestCycleSettings.addResponseFilter(IResponseFilter) object. This will be called from the Buffered Response objects right before they would send it to the real responses. You have to use the RequestCycleSettings.setBufferResponse(boolean)(to true which is the default) for this filtering to work.
Author:
jcompagner
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    filter(AppendingStringBuffer responseBuffer)
    Filters the response buffer and returns the filtered response that can be used in the next filter or returned to the real output itself.
  • Method Details

    • filter

      Filters the response buffer and returns the filtered response that can be used in the next filter or returned to the real output itself. A filter may alter the response buffer and return the response buffer itself.
      Parameters:
      responseBuffer - The response buffer to be filtered
      Returns:
      The changed buffer or the response buffer itself (changed or not)