All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface w3c.jigsaw.http.ClientFactory

public interface ClientFactory

Method Index

 o createServerSocket()
Create the server socket for this client factory.
 o handleConnection(Socket)
Handle the given, new connection.
 o initialize(httpd)
Initialize that client factory.
 o shutdown(boolean)
Shutdown this client factory.

Methods

 o shutdown
 public abstract void shutdown(boolean force)
Shutdown this client factory.

Parameters:
force - If true, force the shutdown, and stop all operations in progress.
 o handleConnection
 public abstract void handleConnection(Socket socket)
Handle the given, new connection.

Parameters:
socket - The newly accepted connection.
 o initialize
 public abstract void initialize(httpd server)
Initialize that client factory. Initialize this new client factory, and create the server socket (ie the socket that will be used to accept new connections.

Parameters:
server - The httpd instance to be used as the context for this client factory.
 o createServerSocket
 public abstract ServerSocket createServerSocket() throws IOException
Create the server socket for this client factory. This method is always called after the initialize method of the client factory is done.

Returns:
A server socket instance.
Throws: IOException
If some IO error occurs while creating the server socket.

All Packages  Class Hierarchy  This Package  Previous  Next  Index