|
xmlBlaster 1.6.2 client API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.xmlBlaster.util.SaxHandlerBase
org.xmlBlaster.client.script.XmlScriptInterpreter
org.xmlBlaster.client.script.XmlScriptClient
XmlScriptClient
Example for usage:
java javaclients.XmlScript -requestFile inFile.xml -responseFile outFile.xml -updateFile updFile.xml
| Field Summary |
| Fields inherited from class org.xmlBlaster.client.script.XmlScriptInterpreter |
cdata, CONTENT_TAG, contentData, ECHO_TAG, INPUT_TAG, key, KEY_TAG, messageList, needsRootEndTag, out, qos, QOS_TAG, response, ROOT_TAG, ROOTRESPONSE_TAG, sendSimpleExceptionFormat, updateCounter, WAIT_TAG, waitMutex, waitNumUpdates |
| Fields inherited from class org.xmlBlaster.util.SaxHandlerBase |
character, locator, xmlLiteral, xmlSource |
| Constructor Summary | |
XmlScriptClient(Global glob,
I_XmlBlasterAccess access,
I_Callback callback,
java.util.HashMap attachments,
java.io.OutputStream out)
This constructor is the most generic one (more degrees of freedom) |
|
XmlScriptClient(Global glob,
I_XmlBlasterAccess access,
java.io.OutputStream cbStream,
java.io.OutputStream responseStream,
java.util.HashMap attachments)
This is a convenience constructor which takes the default I_Callback implementation provided (StreamCallback). |
|
XmlScriptClient(Global glob,
java.io.OutputStream out)
Convenience constructor which takes a minimal amount of parameters. |
|
| Method Summary | |
boolean |
fireMethod(MethodName methodName,
java.lang.String sessionId,
java.lang.String requestId,
byte type)
On each remote method invocation this function is called. |
static void |
main(java.lang.String[] args)
|
void |
registerMsgUnitCb(I_MsgUnitCb msgUnitCb)
You can register a callback which can manipulate the MsgUnit just before it is sent. |
void |
setProperty(java.lang.String key,
java.lang.String value)
Set a property into Global scope. |
java.lang.String |
update(java.lang.String cbSessionId,
UpdateKey updateKey,
byte[] content,
UpdateQos updateQos)
This is the callback method invoked from I_XmlBlasterAccess informing the client in an asynchronous mode about a new message. |
| Methods inherited from class org.xmlBlaster.client.script.XmlScriptInterpreter |
buildMsgUnit, characters, dumpToFile, endCDATA, endElement, flushResponse, initialize, parse, replaceVariable, serialize, startCDATA, startElement, wrapForScripting, wrapForScripting, wrapForScripting, writeElementStart |
| Methods inherited from class org.xmlBlaster.util.SaxHandlerBase |
comment, endDocument, endDTD, endEntity, endPrefixMapping, error, fatalError, getUseLexicalHandler, ignorableWhitespace, init, init, init, notationDecl, processingInstruction, setDocumentLocator, setUseLexicalHandler, skippedEntity, startDocument, startDTD, startEntity, startPrefixMapping, toString, toXml, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public XmlScriptClient(Global glob,
I_XmlBlasterAccess access,
I_Callback callback,
java.util.HashMap attachments,
java.io.OutputStream out)
glob - the global to useaccess - the I_XmlBlasterAccess to use (can be different from the default
given by the global.callback - The I_Callback implementation to be used (you can provide your own desidered behaviour)attachments - the attachments where to search when a content is stored in the attachment (with the 'link' attribute)out - the OutputStream where to send the responses of the invocations done to xmlBlaster
public XmlScriptClient(Global glob,
I_XmlBlasterAccess access,
java.io.OutputStream cbStream,
java.io.OutputStream responseStream,
java.util.HashMap attachments)
glob - the global to useaccess - the I_XmlBlasterAccess to use (can be different from the default
given by the global.cbStream - the OutputStream where to send the information coming in
asynchroneously via the update method (could be different from the
synchroneous output stream).responseStream - the synchroneous OutputStreamattachments - the attachments where to find attached contentsStreamCallback
public XmlScriptClient(Global glob,
java.io.OutputStream out)
glob - the global to use. The I_XmlBlasterAccess will be taken from
it.| Method Detail |
public void registerMsgUnitCb(I_MsgUnitCb msgUnitCb)
public void setProperty(java.lang.String key,
java.lang.String value)
throws XmlBlasterException
XmlScriptInterpreter
setProperty in class XmlScriptInterpreterXmlBlasterException
public boolean fireMethod(MethodName methodName,
java.lang.String sessionId,
java.lang.String requestId,
byte type)
throws XmlBlasterException
XmlScriptInterpreter
fireMethod in class XmlScriptInterpretermethodName - type - 'I'=invoke 'R'=response 'E'=exception
XmlBlasterException - Will lead to stop parsing furtherpublic static void main(java.lang.String[] args)
public java.lang.String update(java.lang.String cbSessionId,
UpdateKey updateKey,
byte[] content,
UpdateQos updateQos)
throws XmlBlasterException
I_Callback
update in interface I_Callbackupdate in class XmlScriptInterpretercbSessionId - updateKey - content - updateQos -
XmlBlasterException
|
xmlBlaster 1.6.2 client API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||