Class EmptySrcAttributeCheckFilter
- java.lang.Object
-
- org.apache.wicket.response.filter.EmptySrcAttributeCheckFilter
-
- All Implemented Interfaces:
IResponseFilter
public class EmptySrcAttributeCheckFilter extends Object implements IResponseFilter
The EmptySrcAttributeFilter checks if an empty src attribute is found in the response. Empty src attribute is problematic as it makes some browsers, i.e. firefox, request an URL twice. Two issues arise: 1. Unnecessary server load. 2. If the browser only renders the first response, some links in the page might be broken as wicket rerendered them in the second request and dropped the ones rendered in the first request.
-
-
Field Summary
Fields Modifier and Type Field Description static EmptySrcAttributeCheckFilter
INSTANCE
Indicates that an empty src attribute is found in the response.
-
Constructor Summary
Constructors Constructor Description EmptySrcAttributeCheckFilter()
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Field Detail
-
INSTANCE
public static final EmptySrcAttributeCheckFilter INSTANCE
Indicates that an empty src attribute is found in the response.
-
-
Constructor Detail
-
EmptySrcAttributeCheckFilter
public EmptySrcAttributeCheckFilter()
-
-
Method Detail
-
filter
public AppendingStringBuffer filter(AppendingStringBuffer responseBuffer)
Description copied from interface:IResponseFilter
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.- Specified by:
filter
in interfaceIResponseFilter
- Parameters:
responseBuffer
- The response buffer to be filtered- Returns:
- The changed buffer or the response buffer itself (changed or not)
-
-