|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.ejb.protocol.HandleEncoder
public class HandleEncoder
Encodes and decodes handles.
| Constructor Summary | |
|---|---|
HandleEncoder(AbstractServer server,
java.lang.String serverId)
|
|
HandleEncoder(java.lang.String serverId)
|
|
| Method Summary | |
|---|---|
AbstractHandle |
createHandle(java.lang.String objectId)
Creates a handle given the server id and the object id. |
AbstractHomeHandle |
createHomeHandle()
Creates a home handle given the server id. |
java.lang.String |
createRandomStringKey()
Creates a random string key. |
protected java.lang.String |
encodePrimaryKey(java.lang.Object primaryKey)
Encodes the primary key as a string. |
protected AbstractServer |
getServer()
|
java.lang.String |
getServerId()
|
java.lang.String |
getURL()
Converts the primary key to a URL. |
java.lang.String |
getURL(java.lang.String primaryKey)
Converts the primary key to a URL. |
java.lang.Object |
objectIdToKey(java.lang.Object id)
|
protected void |
setServer(AbstractServer server)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HandleEncoder(java.lang.String serverId)
public HandleEncoder(AbstractServer server,
java.lang.String serverId)
| Method Detail |
|---|
public java.lang.String getServerId()
protected void setServer(AbstractServer server)
protected AbstractServer getServer()
public AbstractHomeHandle createHomeHandle()
public java.lang.String getURL()
public java.lang.String getURL(java.lang.String primaryKey)
public AbstractHandle createHandle(java.lang.String objectId)
public java.lang.String createRandomStringKey()
protected java.lang.String encodePrimaryKey(java.lang.Object primaryKey)
public java.lang.Object objectIdToKey(java.lang.Object id)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||