Package org.wicketstuff.minis.filter
Class ServerHostNameAndTimeFilter
- java.lang.Object
-
- org.wicketstuff.minis.filter.ServerHostNameAndTimeFilter
-
- All Implemented Interfaces:
IResponseFilter
public class ServerHostNameAndTimeFilter extends Object implements IResponseFilter
Displays an server identifier (combination of host name, IP address and unique id) and the 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, David Bernard, Sebastian Thomschke
-
-
Constructor Summary
Constructors Constructor Description ServerHostNameAndTimeFilter()Construct, trying system property 'hostid' for the server instance.ServerHostNameAndTimeFilter(String hostId)Construct with an id.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddJavaScript(AppendingStringBuffer sb)protected voidaddMessage(AppendingStringBuffer sb)AppendingStringBufferfilter(AppendingStringBuffer responseBuffer)
-
-
-
Constructor Detail
-
ServerHostNameAndTimeFilter
public ServerHostNameAndTimeFilter() throws ExceptionConstruct, trying system property 'hostid' for the server instance.- Throws:
Exception
-
ServerHostNameAndTimeFilter
public ServerHostNameAndTimeFilter(String hostId)
Construct with an id.- Parameters:
hostId- a unique id identifying this server instance
-
-
Method Detail
-
addJavaScript
protected void addJavaScript(AppendingStringBuffer sb)
-
addMessage
protected void addMessage(AppendingStringBuffer sb)
-
filter
public AppendingStringBuffer filter(AppendingStringBuffer responseBuffer)
- Specified by:
filterin interfaceIResponseFilter
-
-