|
xmlBlaster 1.6.2 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.xmlBlaster.client.protocol.xmlrpc.XmlRpcConnection
This is an xmlBlaster proxy. It implements the interface I_XmlBlasterConnection. The client can invoke it as if the xmlBlaster would be on the same VM, making this way the xml-rpc protocol totally transparent.
| Field Summary | |
protected Address |
clientAddress
|
protected ConnectReturnQos |
connectReturnQos
|
private Global |
glob
|
private static java.util.logging.Logger |
log
|
private java.lang.String |
ME
|
protected PluginInfo |
pluginInfo
|
private java.lang.String |
sessionId
|
private org.apache.xmlrpc.XmlRpcClient |
xmlRpcClient
|
private XmlRpcUrl |
xmlRpcUrl
|
| Constructor Summary | |
XmlRpcConnection()
Called by plugin loader which calls init(Global, PluginInfo) thereafter. |
|
XmlRpcConnection(Global glob)
Connect to xmlBlaster using XMLRPC. |
|
XmlRpcConnection(Global glob,
java.applet.Applet ap)
Connect to xmlBlaster using XMLRPC. |
|
| Method Summary | |
java.lang.String |
connect(java.lang.String connectQos)
Login to the server. |
void |
connectLowlevel(Address address)
Initialize the driver and verify if the remote side is reachable on the low-level protocol layer. |
boolean |
disconnect(java.lang.String disconnectQos)
Does a logout. |
java.lang.String[] |
erase(java.lang.String xmlKey_literal,
java.lang.String qos_literal)
Delete messages. |
static XmlBlasterException |
extractXmlBlasterException(Global glob,
org.apache.xmlrpc.XmlRpcException e)
|
static XmlBlasterException |
extractXmlBlasterException(Global glob,
org.apache.xmlrpc.XmlRpcException e,
ErrorCode fallback)
Helma XmlRpc does in XmlRpcServer.java:314 an exception.toString() which is sent back to the client. |
MsgUnitRaw[] |
get(java.lang.String xmlKey_literal,
java.lang.String qos_literal)
Synchronous access a message. |
java.lang.String |
getProtocol()
|
java.lang.String |
getType()
Enforced by I_Plugin |
java.lang.String |
getVersion()
Enforced by I_Plugin |
private org.apache.xmlrpc.XmlRpcClient |
getXmlRpcClient()
|
void |
init(Global glob,
PluginInfo pluginInfo)
This method is called by the PluginManager (enforced by I_Plugin). |
boolean |
isLoggedIn()
|
static void |
main(java.lang.String[] args)
For Testing. |
java.lang.String |
ping(java.lang.String str)
Check server. |
java.lang.String |
publish(MsgUnitRaw msgUnit)
Publish a message. |
java.lang.String[] |
publishArr(MsgUnitRaw[] msgUnitArr)
Publish multiple messages in one sweep. |
void |
publishOneway(MsgUnitRaw[] msgUnitArr)
Publish multiple messages in one sweep. |
I_ProgressListener |
registerProgressListener(I_ProgressListener listener)
Register a listener for to receive information about the progress of incoming data. |
void |
resetConnection()
Reset the driver on problems. |
void |
setConnectReturnQos(ConnectReturnQos connectReturnQos)
Pass the driver the decrypted and parsed ConnectReturnQos directly after a connect. |
void |
shutdown()
Shut down. |
java.lang.String |
subscribe(java.lang.String xmlKey_literal,
java.lang.String qos_literal)
Enforced by I_XmlBlasterConnection interface (failsafe mode). |
java.lang.String |
toXml()
|
java.lang.String |
toXml(java.lang.String extraOffset)
Dump of the server, remove in future. |
java.lang.String[] |
unSubscribe(java.lang.String xmlKey_literal,
java.lang.String qos_literal)
Unsubscribe from messages. |
static java.lang.String |
usage()
Command line usage. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.lang.String ME
private Global glob
private static java.util.logging.Logger log
private XmlRpcUrl xmlRpcUrl
private org.apache.xmlrpc.XmlRpcClient xmlRpcClient
private java.lang.String sessionId
protected ConnectReturnQos connectReturnQos
protected Address clientAddress
protected PluginInfo pluginInfo
| Constructor Detail |
public XmlRpcConnection()
public XmlRpcConnection(Global glob)
throws XmlBlasterException
public XmlRpcConnection(Global glob,
java.applet.Applet ap)
throws XmlBlasterException
| Method Detail |
public java.lang.String getType()
getType in interface I_Pluginpublic java.lang.String getVersion()
getVersion in interface I_Plugin
public void init(Global glob,
PluginInfo pluginInfo)
throws XmlBlasterException
init in interface I_PluginXmlBlasterExceptionI_Plugin.init(org.xmlBlaster.util.Global,org.xmlBlaster.util.plugin.PluginInfo)public final java.lang.String getProtocol()
getProtocol in interface I_XmlBlasterConnection
public void connectLowlevel(Address address)
throws XmlBlasterException
I_XmlBlasterConnection
connectLowlevel in interface I_XmlBlasterConnectionaddress - Contains the remote address,
e.g. the host and port where the remote server listens
XmlBlasterException - ErrorCode.COMMUNICATION* if the server is not reachable,
in this case we can poll for the server.I_XmlBlasterConnection.connectLowlevel(Address)public void resetConnection()
I_XmlBlasterConnection
resetConnection in interface I_XmlBlasterConnection
private org.apache.xmlrpc.XmlRpcClient getXmlRpcClient()
throws XmlBlasterException
XmlBlasterException
public java.lang.String connect(java.lang.String connectQos)
throws XmlBlasterException
connect in interface I_XmlBlasterConnectionconnectQos - The encrypted connect QoS
XmlBlasterException - if login failspublic void setConnectReturnQos(ConnectReturnQos connectReturnQos)
I_XmlBlasterConnection
setConnectReturnQos in interface I_XmlBlasterConnectionI_XmlBlasterConnection.setConnectReturnQos(ConnectReturnQos)public boolean disconnect(java.lang.String disconnectQos)
disconnect in interface I_XmlBlasterConnectiondisconnectQos - The QoS or null
public void shutdown()
throws XmlBlasterException
shutdown in interface I_XmlBlasterConnectionXmlBlasterExceptionpublic boolean isLoggedIn()
isLoggedIn in interface I_XmlBlasterConnection
public final java.lang.String subscribe(java.lang.String xmlKey_literal,
java.lang.String qos_literal)
throws XmlBlasterException
subscribe in interface I_XmlBlasterConnectionXmlBlasterException
public final java.lang.String[] unSubscribe(java.lang.String xmlKey_literal,
java.lang.String qos_literal)
throws XmlBlasterException
unSubscribe in interface I_XmlBlasterConnectionXmlBlasterException
public final java.lang.String publish(MsgUnitRaw msgUnit)
throws XmlBlasterException
publish in interface I_XmlBlasterConnectionXmlBlasterException
public final java.lang.String[] publishArr(MsgUnitRaw[] msgUnitArr)
throws XmlBlasterException
publishArr in interface I_XmlBlasterConnectionXmlBlasterException
public final void publishOneway(MsgUnitRaw[] msgUnitArr)
throws XmlBlasterException
publishOneway in interface I_XmlBlasterConnectionXmlBlasterException
public final java.lang.String[] erase(java.lang.String xmlKey_literal,
java.lang.String qos_literal)
throws XmlBlasterException
erase in interface I_XmlBlasterConnectionXmlBlasterException
public final MsgUnitRaw[] get(java.lang.String xmlKey_literal,
java.lang.String qos_literal)
throws XmlBlasterException
get in interface I_XmlBlasterConnectionXmlBlasterException
public static XmlBlasterException extractXmlBlasterException(Global glob,
org.apache.xmlrpc.XmlRpcException e)
public static XmlBlasterException extractXmlBlasterException(Global glob,
org.apache.xmlrpc.XmlRpcException e,
ErrorCode fallback)
glob - e - The original exceptionfallback - The error code to use if e is unparsable
public java.lang.String ping(java.lang.String str)
throws XmlBlasterException
ping in interface I_XmlBlasterConnectionXmlBlasterException
public java.lang.String toXml()
throws XmlBlasterException
XmlBlasterException
public java.lang.String toXml(java.lang.String extraOffset)
throws XmlBlasterException
XmlBlasterExceptionpublic I_ProgressListener registerProgressListener(I_ProgressListener listener)
registerProgressListener in interface I_XmlBlasterConnectionlistener - Your listener, pass 0 to unregister.
public static java.lang.String usage()
public static void main(java.lang.String[] args)
java org.xmlBlaster.client.protocol.xmlrpc.XmlRpcConnection
|
xmlBlaster 1.6.2 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||