org.apache.wicket.markup.html
Class EmptySrcAttributeCheckFilter

java.lang.Object
  extended by org.apache.wicket.markup.html.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
static EmptySrcAttributeCheckFilter INSTANCE
          Indicates that an empty src attribute is found in the response.
 
Constructor Summary
EmptySrcAttributeCheckFilter()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface IResponseFilter
Parameters:
responseBuffer - The response buffer to be filtered
Returns:
The changed buffer or the response buffer itself (changed or not)
See Also:
IResponseFilter.filter(AppendingStringBuffer)


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.