|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.examples.ServerHostNameAndTimeFilter
public class ServerHostNameAndTimeFilter
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'
Constructor Summary | |
---|---|
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 | |
---|---|
AppendingStringBuffer |
filter(AppendingStringBuffer responseBuffer)
Filters the response buffer and returns the filtered response that can be used in the next filter or returned to the real output itself. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServerHostNameAndTimeFilter()
public ServerHostNameAndTimeFilter(String hostId)
hostId
- a unique id indentifying this server instanceMethod Detail |
---|
public AppendingStringBuffer filter(AppendingStringBuffer responseBuffer)
IResponseFilter
filter
in interface IResponseFilter
responseBuffer
- The response buffer to be filtered
IResponseFilter.filter(AppendingStringBuffer)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |