public final class HTTPRequestFilter extends Object implements TCPProxyFilter
TCPProxyFilter that transforms an HTTP request stream into
an XML document.
Bugs:
TCPProxyFilter.FilterException| Constructor and Description |
|---|
HTTPRequestFilter(HTTPFilterEventListener eventListener)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
connectionClosed(ConnectionDetails connectionDetails)
A connection has been closed.
|
void |
connectionOpened(ConnectionDetails connectionDetails)
A connection has been opened.
|
byte[] |
handle(ConnectionDetails connectionDetails,
byte[] buffer,
int bytesRead)
The main handler method called by the sniffer engine.
|
public HTTPRequestFilter(HTTPFilterEventListener eventListener)
eventListener - Connection handler.public byte[] handle(ConnectionDetails connectionDetails, byte[] buffer, int bytesRead)
This is called for message fragments; we don't assume that its passed a complete HTTP message at a time.
handle in interface TCPProxyFilterconnectionDetails - The TCP connection.buffer - The message fragment buffer.bytesRead - The number of bytes of buffer to process.byte[] which will be
transmitted to the server instead of buffer.public void connectionOpened(ConnectionDetails connectionDetails)
connectionOpened in interface TCPProxyFilterconnectionDetails - a ConnectionDetails valuepublic void connectionClosed(ConnectionDetails connectionDetails)
connectionClosed in interface TCPProxyFilterconnectionDetails - a ConnectionDetails valueCopyright © 2000-2014. All Rights Reserved.