com.caucho.ejb.burlap
Class BurlapHandle

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

public class BurlapHandle
extends AbstractHandle

Handle implementation for Burlap Objects.

 String url = "http://localhost:8080/ejb/houses/Gryffindor";
 BurlapHandle handle = new BurlapHandle(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
BurlapHandle()
          Null-arg constructor for serialization.
BurlapHandle(java.lang.String url)
          Create a new handle.
BurlapHandle(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

BurlapHandle

public BurlapHandle()
Null-arg constructor for serialization.


BurlapHandle

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


BurlapHandle

public BurlapHandle(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