public static class FilterConnection.DumpToFileFilter extends Object implements FilterConnection.Filter
Constructor and Description |
---|
FilterConnection.DumpToFileFilter() |
FilterConnection.DumpToFileFilter(File directory,
boolean deleteOnExit) |
FilterConnection.DumpToFileFilter(File directory,
String prefix,
boolean deleteOnExit) |
FilterConnection.DumpToFileFilter(String prefix) |
Modifier and Type | Method and Description |
---|---|
void |
closed(EndPoint endpoint)
Callback method invoked when a connection to a remote client has been closed.
|
void |
incoming(EndPoint endpoint,
ByteBuffer bytes)
Callback method invoked when bytes sent by a remote client arrived on the server.
|
void |
opened(EndPoint endpoint)
Callback method invoked when a connection from a remote client has been accepted.
|
void |
outgoing(EndPoint endpoint,
ByteBuffer bytes)
Callback method invoked when bytes are sent to a remote client from the server.
|
public FilterConnection.DumpToFileFilter()
public FilterConnection.DumpToFileFilter(File directory, boolean deleteOnExit)
public FilterConnection.DumpToFileFilter(String prefix)
public void opened(EndPoint endpoint)
FilterConnection.Filter
Callback method invoked when a connection from a remote client has been accepted.
The socket
parameter can be used to extract socket address information of
the remote client.
opened
in interface FilterConnection.Filter
endpoint
- the socket associated with the remote clientpublic void incoming(EndPoint endpoint, ByteBuffer bytes)
FilterConnection.Filter
Callback method invoked when bytes sent by a remote client arrived on the server.
incoming
in interface FilterConnection.Filter
endpoint
- the socket associated with the remote clientbytes
- the read-only buffer containing the incoming bytespublic void outgoing(EndPoint endpoint, ByteBuffer bytes)
FilterConnection.Filter
Callback method invoked when bytes are sent to a remote client from the server.
This method is invoked after the bytes have been actually written to the remote client.
outgoing
in interface FilterConnection.Filter
endpoint
- the socket associated with the remote clientbytes
- the read-only buffer containing the outgoing bytespublic void closed(EndPoint endpoint)
FilterConnection.Filter
Callback method invoked when a connection to a remote client has been closed.
The socket
parameter is already closed when this method is called, so it
cannot be queried for socket address information of the remote client.
However, the socket
parameter is the same object passed to #opened(Socket)
,
so it is possible to map socket information in #opened(Socket)
and retrieve it
in this method.
closed
in interface FilterConnection.Filter
endpoint
- the (closed) socket associated with the remote clientCopyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.