public class ServerHostNameAndTimeFilter extends Object implements IResponseFilter
window.defaultStatus = 'Host: myhost/192.168.1.66/someid, handled in: 0.01s'
Constructor and Description |
---|
ServerHostNameAndTimeFilter()
Construct, trying system property 'examples.hostname' for the server id or else current time
milis.
|
ServerHostNameAndTimeFilter(String hostId)
Construct with an id.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public ServerHostNameAndTimeFilter()
public ServerHostNameAndTimeFilter(String hostId)
hostId
- a unique id indentifying this server instancepublic AppendingStringBuffer filter(AppendingStringBuffer responseBuffer)
IResponseFilter
filter
in interface IResponseFilter
responseBuffer
- The response buffer to be filteredIResponseFilter.filter(AppendingStringBuffer)
Copyright © 2006–2021 Apache Software Foundation. All rights reserved.