Class w3c.www.protocol.http.HttpMuxServer
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

Variable Index

 o conn
 o host
 o manager
 o port

Constructor Index

 o HttpMuxServer()

Method Index

 o acquireConnection()
 o deleteConnection(HttpConnection)
 o getMajorVersion()
Get this server's major version number.
 o getMinorVersion()
Get this server's minor version number.
 o getProtocol()
Get this servers' protocol.
 o initialize(HttpManager, HttpServerState, String, int)
Initialize this server instance for the given target location.
 o isTwoStage(Request)
Is this request a two stage request.
 o notifyObserver(RequestObserver, Request, int)
 o notifyObserver(RequestObserver, RequestEvent)
 o releaseConnection()
 o runRequest(Request)
HTTP manager interface - Handle this request in sync mode.

Variables

 o conn
  protected HttpMuxConnection conn
 o manager
  protected HttpManager manager
 o host
  protected String host
 o port
  protected int port

Constructors

 o HttpMuxServer
  public HttpMuxServer()

Methods

 o acquireConnection
  protected synchronized void acquireConnection() throws IOException
 o releaseConnection
  protected synchronized void releaseConnection()
 o getProtocol
  public String getProtocol()
Get this servers' protocol.
Overrides:
getProtocol in class HttpServer
 o getMajorVersion
  public short getMajorVersion()
Get this server's major version number.
Overrides:
getMajorVersion in class HttpServer
 o getMinorVersion
  public short getMinorVersion()
Get this server's minor version number.
Overrides:
getMinorVersion in class HttpServer
 o 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.
 o notifyObserver
  protected void notifyObserver(RequestObserver obs,
                                Request request,
                                int code)
 o notifyObserver
  protected void notifyObserver(RequestObserver obs,
                                RequestEvent evt)
 o runRequest
  public Reply runRequest(Request req) throws HttpException
HTTP manager interface - Handle this request in sync mode.
Overrides:
runRequest in class HttpServer
 o deleteConnection
  public synchronized void deleteConnection(HttpConnection conn)
Overrides:
deleteConnection in class HttpServer
 o initialize
  public void initialize(HttpManager manager,
                         HttpServerState state,
                         String host,
                         int port)
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.
Throws: HttpException
If host coulnd't be resolved.
Overrides:
initialize in class HttpServer

All Packages  Class Hierarchy  This Package  Previous  Next  Index