org.apache.wicket.examples
Class ServerHostNameAndTimeFilter
java.lang.Object
org.apache.wicket.examples.ServerHostNameAndTimeFilter
- All Implemented Interfaces:
- IResponseFilter
public class ServerHostNameAndTimeFilter
- extends java.lang.Object
- implements IResponseFilter
Displays server host name (combination of name, ipaddress and unique id, which is either based)
and time it took to handle the request in the browser's status bar like this:
window.defaultStatus = 'Host: myhost/192.168.1.66/someid, handled in: 0.01s'
- Author:
- eelco hillenius
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServerHostNameAndTimeFilter
public ServerHostNameAndTimeFilter()
- Construct, trying system property 'examples.hostname' for the server id or else current time
milis.
ServerHostNameAndTimeFilter
public ServerHostNameAndTimeFilter(java.lang.String hostId)
- Construct with an id.
- Parameters:
hostId - a unique id indentifying this server instance
filter
public AppendingStringBuffer filter(AppendingStringBuffer responseBuffer)
- Specified by:
filter in interface IResponseFilter
- See Also:
IResponseFilter.filter(AppendingStringBuffer)
Copyright © 2004-2009 Apache Software Foundation. All Rights Reserved.