BEAST
eu.baltrad.beast.adaptor.xmlrpc.XmlRpcAdaptor Class Reference

The XMLRPC adaptor. More...

Inheritance diagram for eu.baltrad.beast.adaptor.xmlrpc.XmlRpcAdaptor:
eu.baltrad.beast.adaptor.IAdaptor

Public Member Functions

 XmlRpcAdaptor ()
 Default constructor.
 
void setGenerator (IXmlRpcCommandGenerator generator)
 Sets the command generator.
 
IXmlRpcCommandGenerator getGenerator ()
 Returns the command generator.
 
void setSystemReporter (ISystemReporter reporter)
 Sets the beast reporter.
 
void setTimeout (long timeout)
 Sets the timeout.
 
long getTimeout ()
 Returns the timeout.
 
void setCallback (IAdaptorCallback cb)
 Sets the callback to use.
 
void setUrl (String url)
 The destination url for the rpc server.
 
String getUrl ()
 Returns the url.
 
void setName (String name)
 Sets the name of this adaptor.
 
String getName ()
 
String getType ()
 
void handle (IBltMessage msg)
 
void handle (IBltMessage message, IAdaptorCallback cb)
 

Static Public Member Functions

static void main (String[] args) throws Throwable
 

Protected Member Functions

XmlRpcClientConfigImpl createConfig ()
 Creates a new instance of the XmlRpcClientConfig.
 
URL createUrl (String url)
 Creates an url from an url.
 
TimingOutCallback createTimeout (long timeout)
 Returns a timing callback.
 

Detailed Description

The XMLRPC adaptor.

Author
Anders Henja

Constructor & Destructor Documentation

◆ XmlRpcAdaptor()

eu.baltrad.beast.adaptor.xmlrpc.XmlRpcAdaptor.XmlRpcAdaptor ( )
inline

Default constructor.

Member Function Documentation

◆ createConfig()

XmlRpcClientConfigImpl eu.baltrad.beast.adaptor.xmlrpc.XmlRpcAdaptor.createConfig ( )
inlineprotected

Creates a new instance of the XmlRpcClientConfig.

Returns
the xml rpc config

◆ createTimeout()

TimingOutCallback eu.baltrad.beast.adaptor.xmlrpc.XmlRpcAdaptor.createTimeout ( long timeout)
inlineprotected

Returns a timing callback.

Parameters
timeoutthe timeout in ms
Returns
the timing callback

◆ createUrl()

URL eu.baltrad.beast.adaptor.xmlrpc.XmlRpcAdaptor.createUrl ( String url)
inlineprotected

Creates an url from an url.

Parameters
urlthe url
Returns
the url
Exceptions
AdaptorAddressExceptionif there is something wrong with the url

◆ getGenerator()

IXmlRpcCommandGenerator eu.baltrad.beast.adaptor.xmlrpc.XmlRpcAdaptor.getGenerator ( )
inline

Returns the command generator.

Returns
the command generator

◆ getName()

String eu.baltrad.beast.adaptor.xmlrpc.XmlRpcAdaptor.getName ( )
inline

◆ getTimeout()

long eu.baltrad.beast.adaptor.xmlrpc.XmlRpcAdaptor.getTimeout ( )
inline

Returns the timeout.

Returns
the timeout

◆ getType()

String eu.baltrad.beast.adaptor.xmlrpc.XmlRpcAdaptor.getType ( )
inline

◆ getUrl()

String eu.baltrad.beast.adaptor.xmlrpc.XmlRpcAdaptor.getUrl ( )
inline

Returns the url.

Returns
the url

◆ handle() [1/2]

◆ handle() [2/2]

void eu.baltrad.beast.adaptor.xmlrpc.XmlRpcAdaptor.handle ( IBltMessage msg)
inline

◆ setCallback()

void eu.baltrad.beast.adaptor.xmlrpc.XmlRpcAdaptor.setCallback ( IAdaptorCallback cb)
inline

Sets the callback to use.

Parameters
cbthe callback

◆ setGenerator()

void eu.baltrad.beast.adaptor.xmlrpc.XmlRpcAdaptor.setGenerator ( IXmlRpcCommandGenerator generator)
inline

Sets the command generator.

Parameters
generator- the generator to set

◆ setName()

void eu.baltrad.beast.adaptor.xmlrpc.XmlRpcAdaptor.setName ( String name)
inline

Sets the name of this adaptor.

Parameters
namethe name of this adaptor

◆ setSystemReporter()

void eu.baltrad.beast.adaptor.xmlrpc.XmlRpcAdaptor.setSystemReporter ( ISystemReporter reporter)
inline

Sets the beast reporter.

Parameters
reporter

◆ setTimeout()

void eu.baltrad.beast.adaptor.xmlrpc.XmlRpcAdaptor.setTimeout ( long timeout)
inline

Sets the timeout.

Parameters
timeout- the timeout

◆ setUrl()

void eu.baltrad.beast.adaptor.xmlrpc.XmlRpcAdaptor.setUrl ( String url)
inline

The destination url for the rpc server.

Parameters
url- the url

The documentation for this class was generated from the following file: