| org.w3c.jigsaw.http.ClientFactory
All known Subclasses: org.w3c.jigsaw.http.mux.MuxClientFactory,
ClientFactory | public interface ClientFactory (Code) | | |
Method Summary | |
public ServerSocket | createServerSocket() Create the server socket for this client factory.
This method is always called after the initialize method
of the client factory is done.
A server socket instance. | public void | handleConnection(Socket socket) Handle the given, new connection. | public void | initialize(httpd server) Initialize that client factory. | public void | shutdown(boolean force) Shutdown this client factory. |
createServerSocket | public ServerSocket createServerSocket() throws IOException(Code) | | Create the server socket for this client factory.
This method is always called after the initialize method
of the client factory is done.
A server socket instance. exception: IOException - If some IO error occurs while creating theserver socket. |
handleConnection | public void handleConnection(Socket socket)(Code) | | Handle the given, new connection.
Parameters: socket - The newly accepted connection. |
initialize | public void initialize(httpd server)(Code) | | 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 forthis client factory. |
shutdown | public void shutdown(boolean force)(Code) | | Shutdown this client factory.
Parameters: force - If true, force the shutdown, and stopall operations in progress. |
|
|