Class w3c.jigsaw.http.mux.MuxClient
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.jigsaw.http.mux.MuxClient

java.lang.Object
   |
   +----w3c.jigsaw.http.Client
           |
           +----w3c.jigsaw.http.mux.MuxClient

public class MuxClient
extends Client
implements Runnable

Method Index

 o bind(MuxSession)
Bind that client to the given connection.
 o getInetAddress()
Client implementation - Get the IP address of this client.
 o idleConnection()
Client implementation - The current connection is now idle.
 o run()
Run HTTP on the newly created mux session.
 o stopConnection()
Client implementation - The current connection was terminated.
 o tryKeepConnection(Request, Reply)
Request has been processed into Reply, should we keep connection alive ? Test wether we can keep the connection alive, after the given reply has been emited.
 o usedConnection()
Client implementation - The current connection is now in use.

Methods

 o tryKeepConnection
  protected boolean tryKeepConnection(Request request,
                                      Reply reply)
Request has been processed into Reply, should we keep connection alive ? Test wether we can keep the connection alive, after the given reply has been emited.
Overrides:
tryKeepConnection in class Client
 o getInetAddress
  public InetAddress getInetAddress()
Client implementation - Get the IP address of this client.
Returns:
An InetAddress instance, or null if the client is not currently running.
Overrides:
getInetAddress in class Client
 o run
  public void run()
Run HTTP on the newly created mux session.
 o idleConnection
  protected boolean idleConnection()
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.
Overrides:
idleConnection in class Client
 o usedConnection
  protected void usedConnection()
Client implementation - The current connection is now in use. Nothing special done.
Overrides:
usedConnection in class Client
 o stopConnection
  protected void stopConnection()
Client implementation - The current connection was terminated. We make sure the underlying mux session is closed properly, and terminate the underlying thread.
Overrides:
stopConnection in class Client
 o bind
  protected void bind(MuxSession session) throws IOException
Bind that client to the given connection.
Parameters:
session - The mux session to handle.

All Packages  Class Hierarchy  This Package  Previous  Next  Index