|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.www.protocol.http.HttpServer
public abstract class HttpServer
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.
Field Summary | |
---|---|
protected org.w3c.www.protocol.http.HttpServerState |
state
|
Constructor Summary | |
---|---|
HttpServer()
|
Method Summary | |
---|---|
abstract short |
getMajorVersion()
Get this server's major version number. |
abstract short |
getMinorVersion()
Get this server's minor version number. |
abstract java.lang.String |
getProtocol()
Get this servers' protocol. |
protected org.w3c.www.protocol.http.HttpServerState |
getState()
Get the manager's state for that server. |
abstract void |
initialize(HttpManager manager,
org.w3c.www.protocol.http.HttpServerState state,
java.lang.String host,
int port,
int timeout)
Initialize this server instance for the given target location. |
abstract void |
initialize(HttpManager manager,
org.w3c.www.protocol.http.HttpServerState state,
java.lang.String host,
int port,
int timeout,
int connect_timeout)
Initialize this server instance for the given target location. |
protected abstract void |
interruptRequest(Request request)
Interrupt the given request (that was launched by that server). |
abstract Reply |
runRequest(Request request)
HTTP manager interface - Handle this request in sync mode. |
protected abstract void |
setConnTimeout(int conn_timeout)
Set the new connection timeout for this server |
protected abstract void |
setTimeout(int timeout)
Set the new timeout for this server |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.w3c.www.protocol.http.HttpServerState state
Constructor Detail |
---|
public HttpServer()
Method Detail |
---|
public abstract java.lang.String getProtocol()
protected final org.w3c.www.protocol.http.HttpServerState getState()
public abstract short getMajorVersion()
public abstract short getMinorVersion()
public abstract Reply runRequest(Request request) throws HttpException
request
- The request this server should run.
HttpException
- If anything failed during request processing.protected abstract void interruptRequest(Request request)
request
- The request to interrupt.protected abstract void setTimeout(int timeout)
timeout
- The timeout value in millisecondsprotected abstract void setConnTimeout(int conn_timeout)
timeout
- The timeout value in millisecondspublic abstract void initialize(HttpManager manager, org.w3c.www.protocol.http.HttpServerState state, java.lang.String host, int port, int timeout) throws HttpException
manager
- The central HTTP protocol manager.state
- The manager's state for that server.host
- The target server's FQDN.port
- The target server's port number.timeout
- The timeout in millisecond for the sockets
HttpException
- If host coulnd't be resolved.public abstract void initialize(HttpManager manager, org.w3c.www.protocol.http.HttpServerState state, java.lang.String host, int port, int timeout, int connect_timeout) throws HttpException
manager
- The central HTTP protocol manager.state
- The manager's state for that server.host
- The target server's FQDN.port
- The target server's port number.timeout
- The timeout in millisecond for the socketstimeout
- The connection timeout in millisecond for the sockets
HttpException
- If host coulnd't be resolved.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |