#include <UploadPlaylistMethod.h>
Inheritance diagram for LiveSupport::Scheduler::UploadPlaylistMethod:
The name of the method when called through XML-RPC is “uploadPlaylist”.
The expected parameter is an XML-RPC structure, with the following members:
The playlistId parameter is a string containing the hexadecimal value of the playlist ID. It is up to 8 characters long, representing a value between 0 and 2^31-1, inclusive.
If the upload is successful, the method returns an XML-RPC structure with the following members:
In case of an error, a standard XML-RPC fault response is generated, and a { faultCode, faultString } structure is returned. The possible errors are:
Definition at line 112 of file UploadPlaylistMethod.h.
Public Member Functions | |
UploadPlaylistMethod (void) throw () | |
A default constructor, for testing purposes. | |
UploadPlaylistMethod (Ptr< XmlRpc::XmlRpcServer >::Ref xmlRpcServer) throw () | |
Constuctor that registers the method with the server right away. | |
void | execute (XmlRpc::XmlRpcValue ¶meters, XmlRpc::XmlRpcValue &returnValue) throw (XmlRpc::XmlRpcException) |
Execute the upload playlist command on the Scheduler daemon. |
LiveSupport::Scheduler::UploadPlaylistMethod::UploadPlaylistMethod | ( | void | ) | throw () [inline] |
UploadPlaylistMethod::UploadPlaylistMethod | ( | Ptr< XmlRpc::XmlRpcServer >::Ref | xmlRpcServer | ) | throw () |
Constuctor that registers the method with the server right away.
xmlRpcServer | the XML-RPC server to register with. |
Definition at line 88 of file UploadPlaylistMethod.cxx.
void UploadPlaylistMethod::execute | ( | XmlRpc::XmlRpcValue & | parameters, | |
XmlRpc::XmlRpcValue & | returnValue | |||
) | throw (XmlRpc::XmlRpcException) |
Execute the upload playlist command on the Scheduler daemon.
parameters | XML-RPC function call parameters | |
returnValue | the return value of the call (out parameter) |
Definition at line 99 of file UploadPlaylistMethod.cxx.
References LiveSupport::Core::XmlRpcException::what().