org.apache.wicket.response.filter
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final EmptySrcAttributeCheckFilter INSTANCE
- Indicates that an empty src attribute is found in the response.
EmptySrcAttributeCheckFilter
public EmptySrcAttributeCheckFilter()
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 interface IResponseFilter
- Parameters:
responseBuffer
- The response buffer to be filtered
- Returns:
- The changed buffer or the response buffer itself (changed or not)
- See Also:
org.apache.wicket.IResponseFilter#filter(AppendingStringBuffer)
Copyright © 2006–2016 Apache Software Foundation. All rights reserved.