com.caucho.ejb.hessian
Class HessianHandle

java.lang.Object
  extended by com.caucho.ejb.protocol.AbstractHandle
      extended by com.caucho.ejb.hessian.HessianHandle
All Implemented Interfaces:
java.io.Serializable, Handle

public class HessianHandle
extends AbstractHandle

Handle implementation for Hessian Objects.

 String url = "http://localhost:8080/ejb/houses/Gryffindor";
 HessianHandle handle = new HessianHandle(url);

 test.RemoteBean bean = (test.RemoteBean) handle.getEJBObject();
 

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.caucho.ejb.protocol.AbstractHandle
log
 
Constructor Summary
HessianHandle()
          Null-arg constructor for serialization.
HessianHandle(java.lang.String url)
          Create a new handle.
HessianHandle(java.lang.String url, java.lang.Object key)
          Create a new handle.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Returns true if equals.
 EJBObject getEJBObject()
           
 java.lang.String getObjectId()
          Returns the object id
 java.lang.Object getObjectKey()
          Returns the object id
 java.lang.String getServerId()
          Returns the server id
 java.lang.String getURL()
          Returns the url
 java.lang.String getURL(java.lang.String protocol)
          Returns the url
 int hashCode()
          Returns the hash code.
 java.lang.String toString()
          Returns the string.
 
Methods inherited from class com.caucho.ejb.protocol.AbstractHandle
getType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HessianHandle

public HessianHandle()
Null-arg constructor for serialization.


HessianHandle

public HessianHandle(java.lang.String url)
Create a new handle.


HessianHandle

public HessianHandle(java.lang.String url,
                     java.lang.Object key)
Create a new handle.

Method Detail

getServerId

public java.lang.String getServerId()
Returns the server id


getObjectId

public java.lang.String getObjectId()
Returns the object id

Specified by:
getObjectId in class AbstractHandle

getEJBObject

public EJBObject getEJBObject()
                       throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getObjectKey

public java.lang.Object getObjectKey()
Returns the object id


getURL

public java.lang.String getURL()
Returns the url


getURL

public java.lang.String getURL(java.lang.String protocol)
Returns the url

Specified by:
getURL in class AbstractHandle

hashCode

public int hashCode()
Returns the hash code.

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Returns true if equals.

Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Returns the string.

Overrides:
toString in class java.lang.Object