com.caucho.ejb.hessian
Class HessianProtocol

java.lang.Object
  extended by com.caucho.ejb.protocol.ProtocolContainer
      extended by com.caucho.ejb.hessian.HessianProtocol

public class HessianProtocol
extends ProtocolContainer

Server containing all the EJBs for a given configuration.

Each protocol will extend the container to override Handle creation.


Field Summary
 
Fields inherited from class com.caucho.ejb.protocol.ProtocolContainer
_manager, _urlPrefix
 
Constructor Summary
HessianProtocol()
          Create a server with the given prefix name.
 
Method Summary
 void addServer(AbstractServer server)
          Adds a server to the protocol.
protected  HandleEncoder createHandleEncoder(AbstractServer server, java.lang.Class primaryKeyClass)
           
 Skeleton getExceptionSkeleton()
          Returns the skeleton to use to return configuration exceptions
 java.lang.String getName()
           
protected  HessianSkeleton getSkeleton(java.lang.Class api, java.lang.Class homeApi, java.lang.Class remoteApi)
          Returns the class for home skeletons.
 Skeleton getSkeleton(java.lang.String uri, java.lang.String queryString)
          Returns the skeleton
 void removeServer(AbstractServer server)
          Removes a server from the protocol.
 
Methods inherited from class com.caucho.ejb.protocol.ProtocolContainer
getProtocolManager, getURLPrefix, getWorkPath, setProtocolManager, setServerManager, setURLPrefix, setWorkPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HessianProtocol

public HessianProtocol()
Create a server with the given prefix name.

Method Detail

getName

public java.lang.String getName()
Overrides:
getName in class ProtocolContainer

addServer

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

Overrides:
addServer in class ProtocolContainer

removeServer

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

Overrides:
removeServer in class ProtocolContainer

createHandleEncoder

protected HandleEncoder createHandleEncoder(AbstractServer server,
                                            java.lang.Class primaryKeyClass)
                                     throws ConfigException
Overrides:
createHandleEncoder in class ProtocolContainer
Throws:
ConfigException

getSkeleton

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

Overrides:
getSkeleton in class ProtocolContainer
Throws:
java.lang.Exception

getExceptionSkeleton

public Skeleton getExceptionSkeleton()
                              throws java.lang.Exception
Returns the skeleton to use to return configuration exceptions

Overrides:
getExceptionSkeleton in class ProtocolContainer
Throws:
java.lang.Exception

getSkeleton

protected HessianSkeleton getSkeleton(java.lang.Class api,
                                      java.lang.Class homeApi,
                                      java.lang.Class remoteApi)
                               throws java.lang.Exception
Returns the class for home skeletons.

Throws:
java.lang.Exception