Interface IResponseFilter
-
- All Known Implementing Classes:
AjaxServerAndClientTimeFilter
,EmptySrcAttributeCheckFilter
,ServerAndClientTimeFilter
,XmlCleaningResponseFilter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface IResponseFilter
A response filter can be added to theRequestCycleSettings.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 theRequestCycleSettings.setBufferResponse(boolean)
(to true which is the default) for this filtering to work.- Author:
- jcompagner
- See Also:
RequestCycleSettings.addResponseFilter(IResponseFilter)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AppendingStringBuffer
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 Detail
-
filter
AppendingStringBuffer 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. 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)
-
-