|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.eclipse.jetty.io.NetworkTrafficListener.Empty
public static class NetworkTrafficListener.Empty
A commodity class that implements NetworkTrafficListener with empty methods.
| 嵌套类摘要 |
|---|
| 从接口 org.eclipse.jetty.io.NetworkTrafficListener 继承的嵌套类/接口 |
|---|
NetworkTrafficListener.Empty |
| 构造方法摘要 | |
|---|---|
NetworkTrafficListener.Empty()
|
|
| 方法摘要 | |
|---|---|
void |
closed(Socket socket)
Callback method invoked when a connection to a remote client has been closed. |
void |
incoming(Socket socket,
Buffer bytes)
Callback method invoked when bytes sent by a remote client arrived on the server. |
void |
opened(Socket socket)
Callback method invoked when a connection from a remote client has been accepted. |
void |
outgoing(Socket socket,
Buffer bytes)
Callback method invoked when bytes are sent to a remote client from the server. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public NetworkTrafficListener.Empty()
| 方法详细信息 |
|---|
public void opened(Socket socket)
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.
NetworkTrafficListener 中的 openedsocket - the socket associated with the remote client
public void incoming(Socket socket,
Buffer bytes)
NetworkTrafficListener 复制的描述Callback method invoked when bytes sent by a remote client arrived on the server.
NetworkTrafficListener 中的 incomingsocket - the socket associated with the remote clientbytes - the read-only buffer containing the incoming bytes
public void outgoing(Socket socket,
Buffer bytes)
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.
NetworkTrafficListener 中的 outgoingsocket - the socket associated with the remote clientbytes - the read-only buffer containing the outgoing bytespublic void closed(Socket socket)
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, the socket parameter is the same object passed to NetworkTrafficListener.opened(Socket),
so it is possible to map socket information in NetworkTrafficListener.opened(Socket) and retrieve it
in this method.
NetworkTrafficListener 中的 closedsocket - the (closed) socket associated with the remote client
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||