com.caucho.ejb.protocol
Class ProtocolContainer

java.lang.Object
  extended by com.caucho.ejb.protocol.ProtocolContainer
Direct Known Subclasses:
HessianProtocol

public class ProtocolContainer
extends java.lang.Object

Server containing all the EJBs for a given configuration.

Each protocol will extend the container to override Handle creation.


Field Summary
protected  EjbProtocolManager _manager
           
protected  java.lang.String _urlPrefix
           
 
Constructor Summary
ProtocolContainer()
           
 
Method Summary
 void addServer(AbstractEjbBeanManager server)
          Adds a server to the protocol.
 Skeleton getExceptionSkeleton()
          Returns the error
 java.lang.String getName()
           
 EjbProtocolManager getProtocolManager()
           
 Skeleton getSkeleton(java.lang.String uri, java.lang.String queryString)
          Returns the skeleton
 java.lang.String getURLPrefix()
           
 Path getWorkPath()
           
 void removeServer(AbstractEjbBeanManager server)
          Removes a server from the protocol.
 void setProtocolManager(EjbProtocolManager manager)
           
 void setServerManager(EjbManager container)
           
 void setURLPrefix(java.lang.String urlPrefix)
           
 void setWorkPath(Path workPath)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_manager

protected EjbProtocolManager _manager

_urlPrefix

protected java.lang.String _urlPrefix
Constructor Detail

ProtocolContainer

public ProtocolContainer()
Method Detail

setServerManager

public void setServerManager(EjbManager container)

getProtocolManager

public EjbProtocolManager getProtocolManager()

setProtocolManager

public void setProtocolManager(EjbProtocolManager manager)

getName

public java.lang.String getName()

setURLPrefix

public void setURLPrefix(java.lang.String urlPrefix)

getURLPrefix

public java.lang.String getURLPrefix()

setWorkPath

public void setWorkPath(Path workPath)

getWorkPath

public Path getWorkPath()

addServer

public void addServer(AbstractEjbBeanManager server)
Adds a server to the protocol.


removeServer

public void removeServer(AbstractEjbBeanManager server)
Removes a server from the protocol.


getSkeleton

public Skeleton getSkeleton(java.lang.String uri,
                            java.lang.String queryString)
                     throws java.lang.Exception
Returns the skeleton

Throws:
java.lang.Exception

getExceptionSkeleton

public Skeleton getExceptionSkeleton()
                              throws java.lang.Exception
Returns the error

Throws:
java.lang.Exception

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object