Class NetworkTrafficListener.Adapter
- java.lang.Object
-
- org.eclipse.jetty.io.NetworkTrafficListener.Adapter
-
- All Implemented Interfaces:
NetworkTrafficListener
- Enclosing interface:
- NetworkTrafficListener
@Deprecated public static class NetworkTrafficListener.Adapter extends java.lang.Object implements NetworkTrafficListener
Deprecated.useNetworkTrafficListener
insteadA commodity class that implements
NetworkTrafficListener
with empty methods.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.io.NetworkTrafficListener
NetworkTrafficListener.Adapter
-
-
Constructor Summary
Constructors Constructor Description Adapter()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
closed(java.net.Socket socket)
Deprecated.Callback method invoked when a connection to a remote client has been closed.void
incoming(java.net.Socket socket, java.nio.ByteBuffer bytes)
Deprecated.Callback method invoked when bytes sent by a remote client arrived on the server.void
opened(java.net.Socket socket)
Deprecated.Callback method invoked when a connection from a remote client has been accepted.void
outgoing(java.net.Socket socket, java.nio.ByteBuffer bytes)
Deprecated.Callback method invoked when bytes are sent to a remote client from the server.
-
-
-
Method Detail
-
opened
public void opened(java.net.Socket socket)
Deprecated.Description copied from interface:NetworkTrafficListener
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.- Specified by:
opened
in interfaceNetworkTrafficListener
- Parameters:
socket
- the socket associated with the remote client
-
incoming
public void incoming(java.net.Socket socket, java.nio.ByteBuffer bytes)
Deprecated.Description copied from interface:NetworkTrafficListener
Callback method invoked when bytes sent by a remote client arrived on the server.
- Specified by:
incoming
in interfaceNetworkTrafficListener
- Parameters:
socket
- the socket associated with the remote clientbytes
- the read-only buffer containing the incoming bytes
-
outgoing
public void outgoing(java.net.Socket socket, java.nio.ByteBuffer bytes)
Deprecated.Description copied from interface:NetworkTrafficListener
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.
- Specified by:
outgoing
in interfaceNetworkTrafficListener
- Parameters:
socket
- the socket associated with the remote clientbytes
- the read-only buffer containing the outgoing bytes
-
closed
public void closed(java.net.Socket socket)
Deprecated.Description copied from interface:NetworkTrafficListener
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, thesocket
parameter is the same object passed toNetworkTrafficListener.opened(Socket)
, so it is possible to map socket information inNetworkTrafficListener.opened(Socket)
and retrieve it in this method.- Specified by:
closed
in interfaceNetworkTrafficListener
- Parameters:
socket
- the (closed) socket associated with the remote client
-
-