Module org.apache.wicket.core
Class EmptySrcAttributeCheckFilter
java.lang.Object
org.apache.wicket.response.filter.EmptySrcAttributeCheckFilter
- All Implemented Interfaces:
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
Modifier and TypeFieldDescriptionstatic final EmptySrcAttributeCheckFilter
Indicates that an empty src attribute is found in the response. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfilter
(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 Details
-
INSTANCE
Indicates that an empty src attribute is found in the response.
-
-
Constructor Details
-
EmptySrcAttributeCheckFilter
public EmptySrcAttributeCheckFilter()
-
-
Method Details
-
filter
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)
-