|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.opengroupware.jogi.connect.xmlrpc.XmlRpcConnection
The class that represents an XmlRpcConnection. This is meant to provide the notion of a connection to an otherwise connection-less type of RPC. The class implements the XmlRpcCaller interface, but currently only delegates the calls to it. Future versions might allow optimizations like queuing etc. to be implemented inside XmlRpcConnection. This also makes it easier to exchange the XmlRpcCaller instance at runtimein case that might be needed at some point.
| Constructor Summary | |
XmlRpcConnection(XmlRpcCaller caller)
|
|
| Method Summary | |
void |
closeConnection()
|
void |
flushChanges()
|
OpenGroupWare |
getOpenGroupWareInstance()
|
java.lang.String |
getUsername()
Returns the current username used for authentificating against the OpenGroupware server. |
XmlRpcCaller |
getXmlRpcCaller()
|
java.lang.Object |
invoke(java.lang.String method_name,
int integer)
|
java.lang.Object |
invoke(java.lang.String method_name,
java.util.List param_list)
This invokes a XML-RPC call. |
java.lang.Object |
invoke(java.lang.String method_name,
java.lang.String string)
|
void |
setPassword(java.lang.String passwd)
Sets the new password used for authentification against the remote OpenGroupware server. |
void |
setUser(java.lang.String user)
Sets the user name used for remote authentification. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XmlRpcConnection(XmlRpcCaller caller)
| Method Detail |
public XmlRpcCaller getXmlRpcCaller()
public OpenGroupWare getOpenGroupWareInstance()
getOpenGroupWareInstance in interface Connectionpublic void closeConnection()
closeConnection in interface Connectionpublic void flushChanges()
flushChanges in interface Connection
public java.lang.Object invoke(java.lang.String method_name,
java.util.List param_list)
throws OgoException,
ConnectionException
XmlRpcCaller
invoke in interface XmlRpcCallermethod_name - the name of the XmlRpc method to call.param_list - the arguments for the remote method.
OgoException
ConnectionException
public java.lang.Object invoke(java.lang.String method_name,
java.lang.String string)
throws OgoException,
ConnectionException
invoke in interface XmlRpcCallerOgoException
ConnectionException
public java.lang.Object invoke(java.lang.String method_name,
int integer)
throws OgoException,
ConnectionException
invoke in interface XmlRpcCallerOgoException
ConnectionExceptionpublic java.lang.String getUsername()
XmlRpcCaller
getUsername in interface XmlRpcCallerpublic void setPassword(java.lang.String passwd)
XmlRpcCaller
setPassword in interface XmlRpcCallerpasswd - The password used for authentification.public void setUser(java.lang.String user)
XmlRpcCaller
setUser in interface XmlRpcCalleruser - The new username to use for authentificating against the remote
OpenGroupware server.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||