    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class org.w3c.jigsaw.http.mux.MuxClientFactory

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

public class MuxClientFactory
extends Object
implements ClientFactory

##

HTTP_PORT

##

MuxClientFactory()

##

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

##

HTTP_PORT

     public static final int HTTP_PORT

##

MuxClientFactory

     public MuxClientFactory()

##

shutdown

     public void shutdown(boolean force)

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.

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.

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