|
CodeBeamer 5.4.0.1-RC API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.intland.codebeamer.remoting.RemoteApiProxy
public class RemoteApiProxy
A special InvocationHandler around a HessianProxy for the RemoteApi to cache session specific information locally on the client
Constructor Summary | |
---|---|
RemoteApiProxy(RemoteApi proxy)
Create a new RemoteApiProxy wrapper for the Hessian RemoteApi proxy provided |
Method Summary | |
---|---|
protected RemoteSession |
checkSession(java.lang.String token)
|
protected void |
closeSession(java.lang.String token)
|
boolean |
equals(java.lang.Object obj)
|
protected void |
finalize()
|
ServerInfo |
getServerInfo()
Returns general information about the remote server. |
RemoteSession |
getSession(java.lang.Object token)
Get the RemoteSession with the specified token |
java.util.Map<java.lang.String,RemoteSession> |
getSessions()
Get the active RemoteSessions of this proxy |
java.net.URL |
getURL()
Returns the proxy's target URL. |
int |
hashCode()
|
protected void |
initSession(java.lang.String token)
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Handles the object invocation. |
static java.lang.String |
Throwable2Status(java.lang.Throwable ex)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RemoteApiProxy(RemoteApi proxy)
proxy
- is the RemoteApi proxy to wrap
java.lang.IllegalArgumentException
- if the proxy is not a Proxy connected to a HessianProxy handlerMethod Detail |
---|
public java.net.URL getURL()
public ServerInfo getServerInfo()
public java.util.Map<java.lang.String,RemoteSession> getSessions()
public RemoteSession getSession(java.lang.Object token)
token
- is the RemoteSession identifier token
protected void initSession(java.lang.String token)
protected RemoteSession checkSession(java.lang.String token)
protected void closeSession(java.lang.String token)
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
invoke
in interface java.lang.reflect.InvocationHandler
proxy
- the proxy that calls invokemethod
- the target method to callargs
- the arguments to the proxy object
java.lang.Throwable
public static java.lang.String Throwable2Status(java.lang.Throwable ex)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
|
CodeBeamer 5.4.0.1-RC API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |