| java.lang.Object org.w3c.jigsaw.http.RequestTimeout org.w3c.jigsaw.http.mux.MuxClient
Field Summary | |
MuxClient | next MuxHttpHandler maintained klist of clients. | protected Thread | thread The thread powering that client connection. |
Method Summary | |
protected void | bind(MuxSession session) Bind that client to the given connection. | public InetAddress | getInetAddress() Client implementation - Get the IP address of this client. | protected Thread | getThread() Get the thread powering that client. | protected boolean | idleConnection() Client implementation - The current connection is now idle. | public void | run() Run HTTP on the newly created mux session. | protected void | stopConnection() Client implementation - The current connection was terminated. | protected boolean | tryKeepConnection(Request request, Reply reply) | protected void | usedConnection() Client implementation - The current connection is now in use. |
thread | protected Thread thread(Code) | | The thread powering that client connection.
|
bind | protected void bind(MuxSession session) throws IOException(Code) | | Bind that client to the given connection.
Parameters: session - The mux session to handle. |
getInetAddress | public InetAddress getInetAddress()(Code) | | Client implementation - Get the IP address of this client.
An InetAddress instance, or null if theclient is not currently running. |
getThread | protected Thread getThread()(Code) | | Get the thread powering that client.
A Thread instance, or null. |
idleConnection | protected boolean idleConnection()(Code) | | Client implementation - The current connection is now idle.
We always close the mux session at that time, since creating a new
mux session has nearly no overhead.
|
run | public void run()(Code) | | Run HTTP on the newly created mux session.
|
stopConnection | protected void stopConnection()(Code) | | Client implementation - The current connection was terminated.
We make sure the underlying mux session is closed properly, and
terminate the underlying thread.
|
usedConnection | protected void usedConnection()(Code) | | Client implementation - The current connection is now in use.
Nothing special done.
|
|
|