|
xmlBlaster 1.6.2 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
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 |
public java.lang.String getName()
public 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.
XmlBlasterExceptionpublic java.lang.String getProtocolId()
public java.lang.String getRawAddress()
public 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
public 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).
public java.lang.String ping(java.lang.String qos)
throws XmlBlasterException
qos - Currently not looked at, please pass an empty string ""
On - connection error
XmlBlasterExceptionorg.xmlBlaster.protocol.I_XmlBlaster#ping(String)public boolean isAlive()
public I_ProgressListener registerProgressListener(I_ProgressListener listener)
listener - Your listener, pass 0 to unregister.
|
xmlBlaster 1.6.2 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||