xmlBlaster 2.2.0 API

org.xmlBlaster.client.protocol.xmlrpc
Class XmlRpcCallbackImpl

java.lang.Object
  extended by org.xmlBlaster.client.protocol.xmlrpc.XmlRpcCallbackImpl

public class XmlRpcCallbackImpl
extends java.lang.Object

The methods of this callback class are exposed to XMLRPC clients, in this case to xmlBlaster when it wants to callback the client.

Author:
Marcel Ruff.

Field Summary
private  boolean inhibitCbExceptions
           
static java.lang.String INHIBITED_CALLBACK_EXCEPTION
           
private static java.util.logging.Logger log
           
private  java.lang.String ME
           
private  XmlRpcCallbackServer server
           
 
Constructor Summary
XmlRpcCallbackImpl()
           
XmlRpcCallbackImpl(XmlRpcCallbackServer server, boolean inhibitCbExceptions)
          Construct a persistently named object.
 
Method Summary
 java.lang.String ping(java.lang.String str)
          Ping to check if the callback server is alive.
 java.lang.String update(java.lang.String cbSessionId, java.lang.String updateKey, byte[] content, java.lang.String updateQos)
          The update method.
 java.lang.String update(java.lang.String cbSessionId, java.lang.String updateKey, java.lang.String contentAsString, java.lang.String updateQos)
          The update method.
 java.lang.String updateOneway(java.lang.String cbSessionId, java.lang.String updateKey, byte[] content, java.lang.String updateQos)
          The 'oneway' update method.
 java.lang.String updateOneway(java.lang.String cbSessionId, java.lang.String updateKey, java.lang.String contentAsString, java.lang.String updateQos)
          The 'oneway' update method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ME

private final java.lang.String ME
See Also:
Constant Field Values

INHIBITED_CALLBACK_EXCEPTION

public static final java.lang.String INHIBITED_CALLBACK_EXCEPTION
See Also:
Constant Field Values

server

private XmlRpcCallbackServer server

log

private static final java.util.logging.Logger log

inhibitCbExceptions

private boolean inhibitCbExceptions
Constructor Detail

XmlRpcCallbackImpl

XmlRpcCallbackImpl(XmlRpcCallbackServer server,
                   boolean inhibitCbExceptions)
             throws XmlBlasterException
Construct a persistently named object.

Parameters:
client - Your implementation of I_CallbackExtended, or null if you don't want any updates.
Throws:
XmlBlasterException

XmlRpcCallbackImpl

XmlRpcCallbackImpl()
Method Detail

update

public java.lang.String update(java.lang.String cbSessionId,
                               java.lang.String updateKey,
                               byte[] content,
                               java.lang.String updateQos)
                        throws XmlBlasterException
The update method.

Gets invoked from xmlBlaster callback

Parameters:
sessionId - A sessionId which we can decide if we trust it This id is the one specified from the client which has setup the callback.
Throws:
XmlBlasterException

updateOneway

public java.lang.String updateOneway(java.lang.String cbSessionId,
                                     java.lang.String updateKey,
                                     byte[] content,
                                     java.lang.String updateQos)
The 'oneway' update method.

oneway is not natively supported by XmlRpc

Gets invoked from XmlRpcCallbackImpl.java (which was called by xmlBlaster)


update

public java.lang.String update(java.lang.String cbSessionId,
                               java.lang.String updateKey,
                               java.lang.String contentAsString,
                               java.lang.String updateQos)
                        throws XmlBlasterException
The update method.

Gets invoked from xmlBlaster callback

Parameters:
sessionId - A sessionId which we can decide if we trust it This id is the one specified from the client which has setup the callback.
Throws:
XmlBlasterException

updateOneway

public java.lang.String updateOneway(java.lang.String cbSessionId,
                                     java.lang.String updateKey,
                                     java.lang.String contentAsString,
                                     java.lang.String updateQos)
The 'oneway' update method.

oneway is not natively supported by XmlRpc

Gets invoked from XmlRpcCallbackImpl.java (which was called by xmlBlaster)


ping

public java.lang.String ping(java.lang.String str)
Ping to check if the callback server is alive.

See Also:
I_CallbackDriver.ping(String)

xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.