com.caucho.ejb.hessian
Class HessianHandleEncoder

java.lang.Object
  extended by com.caucho.ejb.protocol.HandleEncoder
      extended by com.caucho.ejb.hessian.HessianHandleEncoder

public class HessianHandleEncoder
extends HandleEncoder

Encodes and decodes handles.


Constructor Summary
HessianHandleEncoder(AbstractServer server, java.lang.String serverId, java.lang.Class primaryKeyClass)
           
 
Method Summary
 AbstractHandle createHandle(java.lang.String objectId)
          Creates a handle given the server id and the object id.
 AbstractHomeHandle createHomeHandle()
          Creates a home handle given the server id.
 java.lang.String createRandomStringKey()
          Creates a random string key which hashes to this server.
 java.lang.Object objectIdToKey(java.lang.Object objectKey)
          Converts a string object id to the correct key.
 
Methods inherited from class com.caucho.ejb.protocol.HandleEncoder
encodePrimaryKey, getServer, getServerId, getURL, getURL, setServer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HessianHandleEncoder

public HessianHandleEncoder(AbstractServer server,
                            java.lang.String serverId,
                            java.lang.Class primaryKeyClass)
                     throws ConfigException
Throws:
ConfigException
Method Detail

createHomeHandle

public AbstractHomeHandle createHomeHandle()
Creates a home handle given the server id.

Overrides:
createHomeHandle in class HandleEncoder

createHandle

public AbstractHandle createHandle(java.lang.String objectId)
Creates a handle given the server id and the object id.

Overrides:
createHandle in class HandleEncoder

createRandomStringKey

public java.lang.String createRandomStringKey()
Creates a random string key which hashes to this server.

Overrides:
createRandomStringKey in class HandleEncoder

objectIdToKey

public java.lang.Object objectIdToKey(java.lang.Object objectKey)
Converts a string object id to the correct key.

Overrides:
objectIdToKey in class HandleEncoder