|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface I_CallbackDriver
This interface hides the real protocol used to send a client a callback message
Method Summary | |
---|---|
java.lang.String |
getName()
Get a human readable name of this driver |
java.lang.String |
getProtocolId()
Access the xmlBlaster internal name of the protocol driver. |
java.lang.String |
getRawAddress()
Return the address how to access this driver. |
void |
init(Global glob,
CallbackAddress callbackAddress)
Intialize the driver. |
boolean |
isAlive()
|
java.lang.String |
ping(java.lang.String qos)
Ping to check if the clients callback server instance is alive. |
I_ProgressListener |
registerProgressListener(I_ProgressListener listener)
Register a listener for to receive information about the progress of incoming data. |
java.lang.String[] |
sendUpdate(MsgUnitRaw[] msgArr)
Send the message update to the client. |
void |
sendUpdateOneway(MsgUnitRaw[] msgArr)
The oneway variant, without return value |
Methods inherited from interface org.xmlBlaster.util.plugin.I_Plugin |
---|
getType, getVersion, init, shutdown |
Method Detail |
---|
java.lang.String getName()
void init(Global glob, CallbackAddress callbackAddress) throws XmlBlasterException
callbackAddress
- Contains the callback address,
e.g. the stringified CORBA callback handle of the client or his email address.
XmlBlasterException
java.lang.String getProtocolId()
java.lang.String getRawAddress()
java.lang.String[] sendUpdate(MsgUnitRaw[] msgArr) throws XmlBlasterException
msgArr
- Array of all messages to send, is guaranteed to never be null
<qos> <state id='OK'/> <!-- Client processing state OK | ERROR ... see Constants.java --> </qos>
On
- callback problems you need to throw an XmlBlasterException and
the message will queued until the client logs in again.XmlBlasterException
void sendUpdateOneway(MsgUnitRaw[] msgArr) throws XmlBlasterException
msgArr
- Array of all messages to send, is guaranteed to never be null
XmlBlasterException
- Is never from the client (oneway).java.lang.String ping(java.lang.String qos) throws XmlBlasterException
qos
- Currently not looked at, please pass an empty string ""
On
- connection error
XmlBlasterException
org.xmlBlaster.protocol.I_XmlBlaster#ping(String)
boolean isAlive()
I_ProgressListener registerProgressListener(I_ProgressListener listener)
listener
- Your listener, pass 0 to unregister.
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |