Class NetworkTrafficListener.Adapter
- All Implemented Interfaces:
NetworkTrafficListener
- Enclosing interface:
NetworkTrafficListener
A 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Callback method invoked when a connection to a remote client has been closed.voidincoming(Socket socket, ByteBuffer bytes) Deprecated.Callback method invoked when bytes sent by a remote client arrived on the server.voidDeprecated.Callback method invoked when a connection from a remote client has been accepted.voidoutgoing(Socket socket, ByteBuffer bytes) Deprecated.Callback method invoked when bytes are sent to a remote client from the server.
-
Constructor Details
-
Adapter
public Adapter()Deprecated.
-
-
Method Details
-
opened
Deprecated.Description copied from interface:NetworkTrafficListenerCallback method invoked when a connection from a remote client has been accepted.
The
socketparameter can be used to extract socket address information of the remote client.- Specified by:
openedin interfaceNetworkTrafficListener- Parameters:
socket- the socket associated with the remote client
-
incoming
Deprecated.Description copied from interface:NetworkTrafficListenerCallback method invoked when bytes sent by a remote client arrived on the server.
- Specified by:
incomingin interfaceNetworkTrafficListener- Parameters:
socket- the socket associated with the remote clientbytes- the read-only buffer containing the incoming bytes
-
outgoing
Deprecated.Description copied from interface:NetworkTrafficListenerCallback 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:
outgoingin interfaceNetworkTrafficListener- Parameters:
socket- the socket associated with the remote clientbytes- the read-only buffer containing the outgoing bytes
-
closed
Deprecated.Description copied from interface:NetworkTrafficListenerCallback method invoked when a connection to a remote client has been closed.
The
socketparameter is already closed when this method is called, so it cannot be queried for socket address information of the remote client.
However, thesocketparameter 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:
closedin interfaceNetworkTrafficListener- Parameters:
socket- the (closed) socket associated with the remote client
-
NetworkTrafficListenerinstead