org.apache.wicket.markup.html
Class ServerTimeFilter

java.lang.Object
  extended by org.apache.wicket.markup.html.ServerTimeFilter
All Implemented Interfaces:
IResponseFilter

public class ServerTimeFilter
extends Object
implements IResponseFilter

This filter logs the server time so the time it takes from the start of a request and the end of the response. It will log this to the standard logger, and will also change the response buffer if it finds a part to insert the script:

Author:
jcompagner

Constructor Summary
ServerTimeFilter()
           
 
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
 

Constructor Detail

ServerTimeFilter

public ServerTimeFilter()
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.