org.wicketstuff.minis.filter
Class ServerHostNameAndTimeFilter

java.lang.Object
  extended by 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
ServerHostNameAndTimeFilter()
          Construct, trying system property 'hostid' for the server instance.
ServerHostNameAndTimeFilter(String hostId)
          Construct with an id.
 
Method Summary
protected  void addJavaScript(AppendingStringBuffer sb)
           
protected  void addMessage(AppendingStringBuffer sb)
           
 AppendingStringBuffer filter(AppendingStringBuffer responseBuffer)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerHostNameAndTimeFilter

public ServerHostNameAndTimeFilter()
                            throws Exception
Construct, 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:
filter in interface IResponseFilter


Copyright © 2014. All rights reserved.