| java.lang.Object org.w3c.www.protocol.http.HttpServer
All known Subclasses: org.w3c.www.protocol.http.HttpBasicServer, org.w3c.www.protocol.http.HttpMuxServer,
HttpServer | abstract public class HttpServer (Code) | | The HttpServer interface.
This interface is used to control the communication between the HttpManager
and the HttpServer on one side, and between the HttpServer and the
HttpConnection on the other side.
The implementation of the Connection part of the interface is optional
and should be provided only if your server instance uses the connection
concept.
|
getMajorVersion | abstract public short getMajorVersion()(Code) | | Get this server's major version number.
The server's major number version, or -1if still unknown. |
getMinorVersion | abstract public short getMinorVersion()(Code) | | Get this server's minor version number.
The server's minor number version, or -1if still unknown. |
getProtocol | abstract public String getProtocol()(Code) | | Get this servers' protocol.
A String encoding the protocol used to dialog with the targetserver. |
getState | final protected HttpServerState getState()(Code) | | Get the manager's state for that server.
The manager state. |
initialize | abstract public void initialize(HttpManager manager, HttpServerState state, String host, int port, int timeout) throws HttpException(Code) | | Initialize this server instance for the given target location.
Parameters: manager - The central HTTP protocol manager. Parameters: state - The manager's state for that server. Parameters: host - The target server's FQDN. Parameters: port - The target server's port number. Parameters: timeout - The timeout in millisecond for the sockets exception: HttpException - If host coulnd't be resolved. |
initialize | abstract public void initialize(HttpManager manager, HttpServerState state, String host, int port, int timeout, int connect_timeout) throws HttpException(Code) | | Initialize this server instance for the given target location.
Parameters: manager - The central HTTP protocol manager. Parameters: state - The manager's state for that server. Parameters: host - The target server's FQDN. Parameters: port - The target server's port number. Parameters: timeout - The timeout in millisecond for the sockets Parameters: timeout - The connection timeout in millisecond for the sockets exception: HttpException - If host coulnd't be resolved. |
interruptRequest | abstract protected void interruptRequest(Request request)(Code) | | Interrupt the given request (that was launched by that server).
Parameters: request - The request to interrupt. |
runRequest | abstract public Reply runRequest(Request request) throws HttpException(Code) | | HTTP manager interface - Handle this request in sync mode.
Parameters: request - The request this server should run. A Reply instance, containing the target server's reply. exception: HttpException - If anything failed during request processing. |
setConnTimeout | abstract protected void setConnTimeout(int conn_timeout)(Code) | | Set the new connection timeout for this server
Parameters: timeout - The timeout value in milliseconds |
setTimeout | abstract protected void setTimeout(int timeout)(Code) | | Set the new timeout for this server
Parameters: timeout - The timeout value in milliseconds |
|
|