com.caucho.ejb.protocol
Class AbstractHandle

java.lang.Object
  extended by com.caucho.ejb.protocol.AbstractHandle
All Implemented Interfaces:
java.io.Serializable, Handle
Direct Known Subclasses:
BurlapHandle, HandleImpl, HessianHandle

public abstract class AbstractHandle
extends java.lang.Object
implements Handle

Handle implementation for EJB Objects.

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

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

See Also:
Serialized Form

Field Summary
protected static java.util.logging.Logger log
           
 
Constructor Summary
AbstractHandle()
           
 
Method Summary
abstract  java.lang.String getObjectId()
          Returns the object id for the handle.
 java.lang.Class getType()
          Returns the remote API class.
abstract  java.lang.String getURL(java.lang.String protocol)
          Returns the URL for a particular protocol.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.ejb.Handle
getEJBObject
 

Field Detail

log

protected static final java.util.logging.Logger log
Constructor Detail

AbstractHandle

public AbstractHandle()
Method Detail

getObjectId

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


getType

public java.lang.Class getType()
Returns the remote API class.


getURL

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