|
|||||||||
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
public class HttpMuxServer
Field Summary | |
---|---|
protected org.w3c.www.protocol.http.HttpMuxConnection |
conn
|
protected int |
conn_timeout
|
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. |
void |
initialize(HttpManager manager,
org.w3c.www.protocol.http.HttpServerState state,
java.lang.String host,
int port,
int timeout,
int conn_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 |
setConnTimeout(int conn_timeout)
Set the new connection timeout for this server |
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
protected int conn_timeout
Constructor Detail |
---|
public HttpMuxServer()
Method Detail |
---|
protected void acquireConnection() throws java.io.IOException
java.io.IOException
protected void releaseConnection()
public java.lang.String getProtocol()
HttpServer
getProtocol
in class HttpServer
public short getMajorVersion()
HttpServer
getMajorVersion
in class HttpServer
public short getMinorVersion()
HttpServer
getMinorVersion
in class HttpServer
public void setTimeout(int timeout)
HttpServer
setTimeout
in class HttpServer
timeout
- The timeout value in millisecondspublic void setConnTimeout(int conn_timeout)
HttpServer
setConnTimeout
in class HttpServer
protected 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 HttpServer
request
- The request to run.
HttpException
- If something failed during request processing.protected void interruptRequest(Request request)
interruptRequest
in class HttpServer
request
- 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 HttpServer
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 socket's timeout in millisecpublic void initialize(HttpManager manager, org.w3c.www.protocol.http.HttpServerState state, java.lang.String host, int port, int timeout, int conn_timeout)
initialize
in class HttpServer
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 socket's timeout in millisec
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |