com.caucho.network.listen
Class AbstractProtocol

java.lang.Object
  extended by com.caucho.network.listen.AbstractProtocol
All Implemented Interfaces:
Protocol
Direct Known Subclasses:
AbstractHttpProtocol, HmtpProtocol, ProtocolConfig, SnmpProtocol

public abstract class AbstractProtocol
extends java.lang.Object
implements Protocol

Abstract implementation of the Protocol.


Constructor Summary
protected AbstractProtocol()
           
 
Method Summary
abstract  ProtocolConnection createConnection(SocketLink conn)
          Create a Request object for the new thread.
 java.lang.ClassLoader getClassLoader()
          Returns the protocol owning classloader
 java.lang.String getProtocolName()
          Returns the protocol name.
 void setProtocolName(java.lang.String name)
          Sets the protocol name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractProtocol

protected AbstractProtocol()
Method Detail

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 Protocol

getClassLoader

public java.lang.ClassLoader getClassLoader()
Returns the protocol owning classloader


createConnection

public abstract ProtocolConnection createConnection(SocketLink conn)
Create a Request object for the new thread.

Specified by:
createConnection in interface Protocol