Package org.apache.wicket.examples
Class ServerHostNameAndTimeFilter
- java.lang.Object
-
- org.apache.wicket.examples.ServerHostNameAndTimeFilter
-
- All Implemented Interfaces:
IResponseFilter
public class ServerHostNameAndTimeFilter extends 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
-
-
Constructor Summary
Constructors Constructor Description ServerHostNameAndTimeFilter()Construct, trying system property 'examples.hostname' for the server id or else current time milis.ServerHostNameAndTimeFilter(String hostId)Construct with an id.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AppendingStringBufferfilter(AppendingStringBuffer responseBuffer)
-
-
-
Constructor Detail
-
ServerHostNameAndTimeFilter
public ServerHostNameAndTimeFilter()
Construct, trying system property 'examples.hostname' for the server id or else current time milis.
-
ServerHostNameAndTimeFilter
public ServerHostNameAndTimeFilter(String hostId)
Construct with an id.- Parameters:
hostId- a unique id indentifying this server instance
-
-
Method Detail
-
filter
public AppendingStringBuffer filter(AppendingStringBuffer responseBuffer)
- Specified by:
filterin interfaceIResponseFilter- See Also:
IResponseFilter.filter(AppendingStringBuffer)
-
-