All Packages Class Hierarchy This Package Previous Next Index
Interface w3c.jigsaw.http.ClientFactory
- public interface ClientFactory
-
createServerSocket()
- Create the server socket for this client factory.
-
handleConnection(Socket)
- Handle the given, new connection.
-
initialize(httpd)
- Initialize that client factory.
-
shutdown(boolean)
- Shutdown this client factory.
shutdown
public abstract void shutdown(boolean force)
- Shutdown this client factory.
- Parameters:
- force - If true, force the shutdown, and stop
all operations in progress.
handleConnection
public abstract void handleConnection(Socket socket)
- Handle the given, new connection.
- Parameters:
- socket - The newly accepted connection.
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.
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