|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.grinder.plugin.http.tcpproxyfilter.HTTPResponseFilter
public class HTTPResponseFilter
TCPProxyFilter that collects data from server responses.
Should be installed as a response filter. Used by
HttpPluginTCPProxyFilter to determine things such as the basic
authentication realm.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface net.grinder.tools.tcpproxy.TCPProxyFilter |
|---|
TCPProxyFilter.FilterException |
| Constructor Summary | |
|---|---|
HTTPResponseFilter(HTTPFilterEventListener eventListener)
Constructor. |
|
| Method Summary | |
|---|---|
void |
connectionClosed(ConnectionDetails connectionDetails)
A connection has been closed. |
void |
connectionOpened(ConnectionDetails connectionDetails)
A new connection has been opened. |
byte[] |
handle(ConnectionDetails connectionDetails,
byte[] buffer,
int bytesRead)
Handle a message fragment from the stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HTTPResponseFilter(HTTPFilterEventListener eventListener)
eventListener - Connection handler.| Method Detail |
|---|
public byte[] handle(ConnectionDetails connectionDetails,
byte[] buffer,
int bytesRead)
throws TCPProxyFilter.FilterException
This is called for message fragments, don't assume that its passed a complete HTTP message at a time.
handle in interface TCPProxyFilterconnectionDetails - Describes the connection.buffer - Contains the data.bytesRead - How many bytes of data in buffer.
byte[]
which will be transmitted to the server instead of
buffer.
TCPProxyFilter.FilterException - If an error occurs.public void connectionOpened(ConnectionDetails connectionDetails)
connectionOpened in interface TCPProxyFilterconnectionDetails - Describes the connection.public void connectionClosed(ConnectionDetails connectionDetails)
connectionClosed in interface TCPProxyFilterconnectionDetails - Describes the connection.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||