com.caucho.server.port
Class Protocol

java.lang.Object
  extended by com.caucho.server.port.Protocol
All Implemented Interfaces:
RequestFactory
Direct Known Subclasses:
HmuxProtocol, HttpProtocol, ProtocolConfig, SnmpProtocol, SocketPolicyProtocol, XmppProtocol

public class Protocol
extends java.lang.Object
implements RequestFactory

Represents a protocol connection.


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

Constructor Detail

Protocol

public Protocol()
Method Detail

setParent

public void setParent(Port port)
Sets the containing port.


setProtocolName

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


getProtocolName

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

Specified by:
getProtocolName in interface RequestFactory

getPort

public Port getPort()
Gets the parent port.


setServer

public void setServer(DispatchServer server)
Sets the server.


getServer

public DispatchServer getServer()
Gets the server.


addText

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


createRequest

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

Specified by:
createRequest in interface RequestFactory