|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.opengroupware.jogi.connect.xmlrpc.ApacheXmlRpcCaller
This class is an Wrapper arround the Apache-XMLRPC library. It provides implementations for calling remote methods and for basic user authentification.
| Field Summary | |
static java.lang.String |
xmlrpcEncoding_
|
| Constructor Summary | |
ApacheXmlRpcCaller(java.lang.String url,
java.lang.String user,
java.lang.String password)
|
|
| Method Summary | |
java.lang.String |
getUsername()
Returns the current username used for authentificating against the OpenGroupware server. |
java.lang.Object |
invoke(java.lang.String method_name)
|
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 |
| Field Detail |
public static final java.lang.String xmlrpcEncoding_
| Constructor Detail |
public ApacheXmlRpcCaller(java.lang.String url,
java.lang.String user,
java.lang.String password)
throws ConnectionException
| Method Detail |
public java.lang.Object invoke(java.lang.String method_name,
java.lang.String string)
throws ConnectionException,
OgoException
invoke in interface XmlRpcCallerConnectionException
OgoException
public java.lang.Object invoke(java.lang.String method_name)
throws ConnectionException,
OgoException
ConnectionException
OgoException
public java.lang.Object invoke(java.lang.String method_name,
int integer)
throws ConnectionException,
OgoException
invoke in interface XmlRpcCallerConnectionException
OgoException
public java.lang.Object invoke(java.lang.String method_name,
java.util.List param_list)
throws ConnectionException,
OgoException
XmlRpcCaller
invoke in interface XmlRpcCallermethod_name - the name of the XmlRpc method to call.param_list - the arguments for the remote method.
ConnectionException
OgoExceptionpublic void setUser(java.lang.String user)
XmlRpcCaller
setUser in interface XmlRpcCalleruser - The new username to use for authentificating against the remote
OpenGroupware server.public 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.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||