All Packages Class Hierarchy This Package Previous Next Index
Class w3c.www.protocol.http.HttpMuxServer
java.lang.Object
|
+----w3c.www.protocol.http.HttpServer
|
+----w3c.www.protocol.http.HttpMuxServer
- public class HttpMuxServer
- extends HttpServer
-
conn
-
-
host
-
-
manager
-
-
port
-
-
timeout
-
-
HttpMuxServer()
-
-
acquireConnection()
-
-
deleteConnection(HttpConnection)
-
-
getMajorVersion()
- Get this server's major version number.
-
getMinorVersion()
- Get this server's minor version number.
-
getProtocol()
- Get this servers' protocol.
-
initialize(HttpManager, HttpServerState, String, int, int)
- Initialize this server instance for the given target location.
-
interruptRequest(Request)
- Interrupt given request (that we launched).
-
isTwoStage(Request)
- Is this request a two stage request.
-
notifyObserver(RequestObserver, Request, int)
-
-
notifyObserver(RequestObserver, RequestEvent)
-
-
releaseConnection()
-
-
runRequest(Request)
- HTTP manager interface - Handle this request in sync mode.
-
setTimeout(int)
- Set the new timeout for this server
conn
protected HttpMuxConnection conn
manager
protected HttpManager manager
host
protected String host
port
protected int port
timeout
protected int timeout
HttpMuxServer
public HttpMuxServer()
acquireConnection
protected synchronized void acquireConnection() throws IOException
releaseConnection
protected synchronized void releaseConnection()
getProtocol
public String getProtocol()
- Get this servers' protocol.
- Overrides:
- getProtocol in class HttpServer
getMajorVersion
public short getMajorVersion()
- Get this server's major version number.
- Overrides:
- getMajorVersion in class HttpServer
getMinorVersion
public short getMinorVersion()
- Get this server's minor version number.
- Overrides:
- getMinorVersion in class HttpServer
setTimeout
public synchronized void setTimeout(int timeout)
- Set the new timeout for this server
- Overrides:
- setTimeout in class HttpServer
isTwoStage
protected boolean isTwoStage(Request requset)
- Is this request a two stage request.
- Returns:
- A boolean, true if the request is two
stage, false otherwise.
notifyObserver
protected void notifyObserver(RequestObserver obs,
Request request,
int code)
notifyObserver
protected void notifyObserver(RequestObserver obs,
RequestEvent evt)
runRequest
public Reply runRequest(Request req) throws HttpException
- HTTP manager interface - Handle this request in sync mode.
- Overrides:
- runRequest in class HttpServer
interruptRequest
protected void interruptRequest(Request request)
- Interrupt given request (that we launched).
THIS METHID IS NOT IMPLEMENTED !
- Parameters:
- request - The request to interrupt.
- Overrides:
- interruptRequest in class HttpServer
deleteConnection
public synchronized void deleteConnection(HttpConnection conn)
initialize
public void initialize(HttpManager manager,
HttpServerState state,
String host,
int port,
int timeout)
- Initialize this server instance for the given target location.
- Parameters:
- 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
- Throws: HttpException
- If host coulnd't be resolved.
- Overrides:
- initialize in class HttpServer
All Packages Class Hierarchy This Package Previous Next Index