org.apache.wicket.response.filter
Interface IResponseFilter
- All Known Implementing Classes:
- AjaxServerAndClientTimeFilter, EmptySrcAttributeCheckFilter, ServerAndClientTimeFilter
public interface IResponseFilter
A response filter can be added to the
IRequestCycleSettings.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
IRequestCycleSettings.setBufferResponse(boolean)
(to true which
is the default) for this filtering to work.
- Author:
- jcompagner
- See Also:
IRequestCycleSettings.addResponseFilter(IResponseFilter)
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)
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.