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

Class w3c.jigsaw.http.mux.MuxClientFactory

java.lang.Object
   |
   +----w3c.jigsaw.http.mux.MuxClientFactory

public class MuxClientFactory
extends Object
implements ClientFactory

Variable Index

 o HTTP_PORT

Constructor Index

 o MuxClientFactory()

Method Index

 o createServerSocket()
Create a suitable server socket for our server context.
 o handleConnection(Socket)
Handle that new incomming connection.
 o initialize(httpd)
Initialize the MUX client factory.
 o shutdown(boolean)

Variables

 o HTTP_PORT
  public final static int HTTP_PORT

Constructors

 o MuxClientFactory
  public MuxClientFactory()

Methods

 o shutdown
  public void shutdown(boolean force)
 o handleConnection
  public void handleConnection(Socket socket)
Handle that new incomming connection. Wrap the given socket into a MuxStream, the rest is handled magically.
Parameters:
socket - The newly accepted socket.
 o createServerSocket
  public ServerSocket createServerSocket() throws IOException
Create a suitable server socket for our server context.
Returns:
A ServerSocket instance.
Throws: IOException
If some IO error occured while creating the server socket.
 o initialize
  public void initialize(httpd server)
Initialize the MUX client factory.
Parameters:
server - The server context in which this factory is to run.

All Packages  Class Hierarchy  This Package  Previous  Next  Index