|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.ejb.protocol.AbstractHandle
com.caucho.ejb.protocol.HandleImpl
public class HandleImpl
Handle implementation for EJB Objects.
String url = "http://localhost:8080/ejb/houses?ejbid=Gryffindor";
HandleImpl handle = new HandleImpl(url);
test.RemoteBean bean = (test.RemoteBean) handle.getEJBObject();
| Field Summary |
|---|
| Fields inherited from class com.caucho.ejb.protocol.AbstractHandle |
|---|
log |
| Constructor Summary | |
|---|---|
HandleImpl()
Null constructor for serialization. |
|
HandleImpl(java.lang.String serverId,
java.lang.String objectId)
Create a new HandleImpl |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object b)
Returns true if the test handle refers to the same object. |
EJBObject |
getEJBObject()
|
java.lang.String |
getObjectId()
Returns the URL suffix used as a primary key. |
java.lang.String |
getServerId()
Return the URL prefix for the bean's home. |
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.AbstractHandle |
|---|
getType |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HandleImpl()
public HandleImpl(java.lang.String serverId,
java.lang.String objectId)
serverId - the object's serverobjectKey - the object id| Method Detail |
|---|
public java.lang.String getServerId()
public java.lang.String getObjectId()
getObjectId in class AbstractHandlepublic java.lang.String getURL(java.lang.String protocol)
AbstractHandle
getURL in class AbstractHandle
public EJBObject getEJBObject()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic boolean equals(java.lang.Object b)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||