com.caucho.ejb.hessian
Class HessianHomeHandle

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

public class HessianHomeHandle
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
HessianHomeHandle()
          Null arg constructor for serialization.
HessianHomeHandle(EJBHome home, java.lang.String url)
          Creates a new HomeHandle.
HessianHomeHandle(java.lang.String url)
          Creates a new HomeHandle.
 
Method Summary
 EJBHome getEJBHome()
          Returns the EJBHome object associated with the handle.
 java.lang.String getServerId()
          Returns the handle's server id.
 java.lang.String getURL(java.lang.String protocol)
          Returns the full URL
 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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HessianHomeHandle

public HessianHomeHandle()
Null arg constructor for serialization.


HessianHomeHandle

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

Parameters:
url - the url for the bean

HessianHomeHandle

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

Parameters:
url - the url for the bean
Method Detail

getEJBHome

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

Throws:
java.rmi.RemoteException

getServerId

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


getURL

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

Specified by:
getURL in class AbstractHomeHandle

toString

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

Overrides:
toString in class java.lang.Object