public class CobblerXMLRPCHelper extends java.lang.Object implements XMLRPCInvoker
Constructor and Description |
---|
CobblerXMLRPCHelper()
Constructor
|
Modifier and Type | Method and Description |
---|---|
static org.cobbler.CobblerConnection |
getAutomatedConnection()
Returns the cobbler anonymous/automated using the connection
cobbler automated user config entry..
|
static java.lang.Double |
getCobblerVersion()
Returns the cobbler version number
|
static org.cobbler.CobblerConnection |
getConnection(java.lang.String userName)
Returns the new cobbler object, if you can't specify a user
|
static org.cobbler.CobblerConnection |
getConnection(User user)
Returns the a new cobbler connection object
|
java.lang.Object |
invokeMethod(java.lang.String procedureName,
java.util.List args)
Invoke an XMLRPC method.
|
public java.lang.Object invokeMethod(java.lang.String procedureName, java.util.List args) throws redstone.xmlrpc.XmlRpcFault
invokeMethod
in interface XMLRPCInvoker
procedureName
- to invokeargs
- to pass to methodredstone.xmlrpc.XmlRpcFault
- if expected error occurspublic static org.cobbler.CobblerConnection getConnection(User user)
user
- the logged in user to ge the auth tokenpublic static org.cobbler.CobblerConnection getConnection(java.lang.String userName)
userName
- the usernamepublic static org.cobbler.CobblerConnection getAutomatedConnection()
public static java.lang.Double getCobblerVersion()