|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xmlBlaster.client.protocol.AbstractCallbackExtended
public abstract class AbstractCallbackExtended
This is a little abstract helper class which extends the I_CallbackExtended interface to become suited for protocols like xml-rpc. Note that you need to extend this class because one of the update methods is abstract.
Field Summary | |
---|---|
protected Global |
glob
|
private static java.util.logging.Logger |
log
|
private java.lang.String |
ME
|
protected boolean |
updateBulkAck
|
Constructor Summary | |
---|---|
AbstractCallbackExtended(Global glob)
|
Method Summary | |
---|---|
DispatchStatistic |
getDispatchStatistic()
Access the statistic holder. |
abstract I_ClientPlugin |
getSecurityPlugin()
|
java.lang.String[] |
update(java.lang.String cbSessionId,
MsgUnitRaw[] msgUnitArr)
This is the callback method invoked natively informing the client in an asynchronous mode about new messages. |
java.lang.String |
update(java.lang.String cbSessionId,
java.lang.String updateKeyLiteral,
byte[] content,
java.lang.String updateQosLiteral)
It parses the string literals passed in the argument list and calls subsequently the update method with the signature defined in I_Callback. |
abstract java.lang.String |
update(java.lang.String cbSessionId,
UpdateKey updateKey,
byte[] content,
UpdateQos updateQos)
The class which extends AbstractCallbackExtended must implement this method. |
void |
updateOneway(java.lang.String cbSessionId,
MsgUnitRaw[] msgUnitArr)
The oneway variant without a return value or exception |
void |
updateOneway(java.lang.String cbSessionId,
java.lang.String updateKeyLiteral,
byte[] content,
java.lang.String updateQosLiteral)
The oneway variant without a return value or exception We match it to the blocking variant. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xmlBlaster.client.protocol.I_CallbackExtended |
---|
lostConnection |
Field Detail |
---|
private java.lang.String ME
protected final Global glob
private static java.util.logging.Logger log
protected boolean updateBulkAck
Constructor Detail |
---|
public AbstractCallbackExtended(Global glob)
glob
- If null we use Global.instance()Method Detail |
---|
public abstract I_ClientPlugin getSecurityPlugin()
public DispatchStatistic getDispatchStatistic()
public java.lang.String update(java.lang.String cbSessionId, java.lang.String updateKeyLiteral, byte[] content, java.lang.String updateQosLiteral) throws XmlBlasterException
This method is invoked by certain protocols only. Others might directly invoke the update method with the other signature.
update
in interface I_CallbackExtended
cbSessionId
- The session ID specified by the client which registered the callbackupdateKeyLiteral
- The arrived key (as an xml-string)content
- The arrived message contentupdateQosLiteral
- Quality of Service of the MsgUnitRaw
(as an xml-string)
XmlBlasterException
I_CallbackExtended
public void updateOneway(java.lang.String cbSessionId, java.lang.String updateKeyLiteral, byte[] content, java.lang.String updateQosLiteral)
updateOneway
in interface I_CallbackExtended
public java.lang.String[] update(java.lang.String cbSessionId, MsgUnitRaw[] msgUnitArr) throws XmlBlasterException
update
in interface I_CallbackRaw
msgUnitArr
- Contains MsgUnitRaw structs (your message) in native form
XmlBlasterException
public void updateOneway(java.lang.String cbSessionId, MsgUnitRaw[] msgUnitArr)
updateOneway
in interface I_CallbackRaw
public abstract java.lang.String update(java.lang.String cbSessionId, UpdateKey updateKey, byte[] content, UpdateQos updateQos) throws XmlBlasterException
update
in interface I_Callback
cbSessionId
- The session ID specified by the client which registered the callbackupdateKey
- The arrived key (as an xml-string)content
- The arrived message contentupdateQos
- Quality of Service of the MsgUnitRaw as an xml-string
XmlBlasterException
I_Callback
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |