org.wicketstuff.minis.filter
Class ServerHostNameAndTimeFilter
java.lang.Object
org.wicketstuff.minis.filter.ServerHostNameAndTimeFilter
- All Implemented Interfaces:
- org.apache.wicket.IResponseFilter
public class ServerHostNameAndTimeFilter
- extends java.lang.Object
- implements org.apache.wicket.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
|
Method Summary |
protected void |
addJavaScript(org.apache.wicket.util.string.AppendingStringBuffer sb)
|
protected void |
addMessage(org.apache.wicket.util.string.AppendingStringBuffer sb)
|
org.apache.wicket.util.string.AppendingStringBuffer |
filter(org.apache.wicket.util.string.AppendingStringBuffer responseBuffer)
|
| 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 'hostid' for the server instance.
ServerHostNameAndTimeFilter
public ServerHostNameAndTimeFilter(java.lang.String hostId)
- Construct with an id.
- Parameters:
hostId - a unique id identifying this server instance
addJavaScript
protected void addJavaScript(org.apache.wicket.util.string.AppendingStringBuffer sb)
addMessage
protected void addMessage(org.apache.wicket.util.string.AppendingStringBuffer sb)
filter
public org.apache.wicket.util.string.AppendingStringBuffer filter(org.apache.wicket.util.string.AppendingStringBuffer responseBuffer)
-
- Specified by:
filter in interface org.apache.wicket.IResponseFilter
Copyright © 2011. All Rights Reserved.