com.caucho.ejb.burlap
Class BurlapHomeHandle

java.lang.Object
  extended by com.caucho.ejb.protocol.AbstractHomeHandle
      extended by com.caucho.ejb.burlap.BurlapHomeHandle
All Implemented Interfaces:
java.io.Serializable, HomeHandle

public class BurlapHomeHandle
extends AbstractHomeHandle

Implementation for a home handle.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.caucho.ejb.protocol.AbstractHomeHandle
log
 
Constructor Summary
BurlapHomeHandle()
          Null arg constructor for serialization.
BurlapHomeHandle(EJBHome home, java.lang.String url)
          Creates a new HomeHandle.
BurlapHomeHandle(java.lang.String url)
          Creates a new HomeHandle.
 
Method Summary
 boolean equals(java.lang.Object b)
          Returns true if the test handle refers to the same object.
 EJBHome getEJBHome()
          Returns the EJBHome object associated with the handle.
 java.lang.String getServerId()
          Returns the handle's server id.
 java.lang.String getURL()
          Returns the full URL
 java.lang.String getURL(java.lang.String protocol)
          Returns the URL for a particular protocol.
 int hashCode()
          The handle's hashcode is the same as the url's hashcode
 java.lang.String toString()
          The printed representation of the handle is the url.
 
Methods inherited from class com.caucho.ejb.protocol.AbstractHomeHandle
getType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BurlapHomeHandle

public BurlapHomeHandle()
Null arg constructor for serialization.


BurlapHomeHandle

public BurlapHomeHandle(java.lang.String url)
Creates a new HomeHandle.

Parameters:
url - the url for the bean

BurlapHomeHandle

public BurlapHomeHandle(EJBHome home,
                        java.lang.String url)
Creates a new HomeHandle.

Parameters:
url - the url for the bean
Method Detail

getServerId

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


getEJBHome

public EJBHome getEJBHome()
                   throws java.rmi.RemoteException
Returns the EJBHome object associated with the handle.

Throws:
java.rmi.RemoteException

getURL

public java.lang.String getURL(java.lang.String protocol)
Returns the URL for a particular protocol.

Specified by:
getURL in class AbstractHomeHandle

getURL

public java.lang.String getURL()
Returns the full URL


equals

public boolean equals(java.lang.Object b)
Returns true if the test handle refers to the same object. In this implementation, the handles are identical iff the urls are identical.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
The handle's hashcode is the same as the url's hashcode

Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
The printed representation of the handle is the url.

Overrides:
toString in class java.lang.Object