|
||||||||||
| 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
|
+--org.w3c.www.protocol.http.HttpMuxServer
| Field Summary | |
protected org.w3c.www.protocol.http.HttpMuxConnection |
conn
|
protected java.lang.String |
host
|
protected HttpManager |
manager
|
protected int |
port
|
protected int |
timeout
|
| Fields inherited from class org.w3c.www.protocol.http.HttpServer |
state |
| Constructor Summary | |
HttpMuxServer()
|
|
| Method Summary | |
protected void |
acquireConnection()
|
void |
deleteConnection(org.w3c.www.protocol.http.HttpConnection conn)
|
short |
getMajorVersion()
Get this server's major version number. |
short |
getMinorVersion()
Get this server's minor version number. |
java.lang.String |
getProtocol()
Get this servers' protocol. |
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. |
protected void |
interruptRequest(Request request)
Interrupt given request (that we launched). |
protected boolean |
isTwoStage(Request requset)
Is this request a two stage request. |
protected void |
notifyObserver(RequestObserver obs,
RequestEvent evt)
|
protected void |
notifyObserver(RequestObserver obs,
Request request,
int code)
|
protected void |
releaseConnection()
|
Reply |
runRequest(Request req)
Run the given request. |
void |
setTimeout(int timeout)
Set the new timeout for this server |
| Methods inherited from class org.w3c.www.protocol.http.HttpServer |
getState |
| 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.HttpMuxConnection conn
protected HttpManager manager
protected java.lang.String host
protected int port
protected int timeout
| Constructor Detail |
public HttpMuxServer()
| Method Detail |
protected void acquireConnection()
throws java.io.IOException
java.io.IOExceptionprotected void releaseConnection()
public java.lang.String getProtocol()
HttpServer
getProtocol in class HttpServerpublic short getMajorVersion()
HttpServer
getMajorVersion in class HttpServerpublic short getMinorVersion()
HttpServer
getMinorVersion in class HttpServerpublic void setTimeout(int timeout)
HttpServer
setTimeout in class HttpServertimeout - The timeout value in millisecondsprotected boolean isTwoStage(Request requset)
protected void notifyObserver(RequestObserver obs,
Request request,
int code)
protected void notifyObserver(RequestObserver obs,
RequestEvent evt)
public Reply runRequest(Request req)
throws HttpException
runRequest in class HttpServerreq - The request this server should run.
HttpException - If something failed during request processing.protected void interruptRequest(Request request)
interruptRequest in class HttpServerrequest - The request to interrupt.public void deleteConnection(org.w3c.www.protocol.http.HttpConnection conn)
public void initialize(HttpManager manager,
org.w3c.www.protocol.http.HttpServerState state,
java.lang.String host,
int port,
int timeout)
initialize in class HttpServermanager - 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 socket's timeout in millisec
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||