com.caucho.server.http
Class HttpProtocol

java.lang.Object
  extended by com.caucho.server.port.Protocol
      extended by com.caucho.server.http.HttpProtocol
All Implemented Interfaces:
RequestFactory

public class HttpProtocol
extends Protocol

The main class for the HTTP server.

TcpServer handles the main thread control. HttpServer just needs to create the right kind of request when a new thread is spawned.

See Also:
com.caucho.server.TcpServer

Constructor Summary
HttpProtocol()
           
 
Method Summary
 ServerRequest createRequest(Connection conn)
          Create a HttpRequest object for the new thread.
 java.lang.String getProtocolName()
          Returns the protocol name.
 void setProtocolName(java.lang.String name)
          Sets the protocol name.
 
Methods inherited from class com.caucho.server.port.Protocol
addText, getPort, getServer, setParent, setServer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpProtocol

public HttpProtocol()
Method Detail

getProtocolName

public java.lang.String getProtocolName()
Returns the protocol name.

Specified by:
getProtocolName in interface RequestFactory
Overrides:
getProtocolName in class Protocol

setProtocolName

public void setProtocolName(java.lang.String name)
Sets the protocol name.

Overrides:
setProtocolName in class Protocol

createRequest

public ServerRequest createRequest(Connection conn)
Create a HttpRequest object for the new thread.

Specified by:
createRequest in interface RequestFactory
Overrides:
createRequest in class Protocol