|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.grinder.tools.tcpproxy.CompositeFilter
public final class CompositeFilter
Composite TCPProxyFilter.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface net.grinder.tools.tcpproxy.TCPProxyFilter |
|---|
TCPProxyFilter.FilterException |
| Constructor Summary | |
|---|---|
CompositeFilter()
|
|
| Method Summary | |
|---|---|
void |
add(TCPProxyFilter filter)
Add a filter to the composite. |
void |
connectionClosed(ConnectionDetails connectionDetails)
A connection has been closed. |
void |
connectionOpened(ConnectionDetails connectionDetails)
A new connection has been opened. |
byte[] |
handle(ConnectionDetails connectionDetails,
byte[] originalBuffer,
int bytesRead)
Handle a message fragment from the stream. |
String |
toString()
Describe the filter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CompositeFilter()
| Method Detail |
|---|
public byte[] handle(ConnectionDetails connectionDetails,
byte[] originalBuffer,
int bytesRead)
throws TCPProxyFilter.FilterException
handle in interface TCPProxyFilterconnectionDetails - Describes the connection.originalBuffer - 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)
throws TCPProxyFilter.FilterException
connectionOpened in interface TCPProxyFilterconnectionDetails - Describes the connection.
TCPProxyFilter.FilterException - If an error occurs.
public void connectionClosed(ConnectionDetails connectionDetails)
throws TCPProxyFilter.FilterException
connectionClosed in interface TCPProxyFilterconnectionDetails - Describes the connection.
TCPProxyFilter.FilterException - If an error occurs.public void add(TCPProxyFilter filter)
filter - The filter.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||