    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

##

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)
  Initialize this server instance for the given target location.
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.

##

conn

      protected HttpMuxConnection conn

manager

      protected HttpManager manager

host

      protected String host

port

      protected int port

##

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

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

deleteConnection

      public synchronized void deleteConnection(HttpConnection conn)

Overrides:
  deleteConnection in class HttpServer

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