|
xmlBlaster 2.1.0 client API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xmlBlaster.client.feeder.PublishFile
public class PublishFile
Publish files to xmlBlaster.
Use this as a command line tool to publish files, images, etc. as messages to xmlBlaster.
Invoke examples:
java org.xmlBlaster.client.feeder.PublishFile -c <content-file> -k <key-file> -q <qos-file> -m <mime-type>
For other supported options type
java org.xmlBlaster.client.feeder.PublishFile -?
| Constructor Summary | |
|---|---|
PublishFile(java.lang.String[] args)
Constructs the PublishFile object. |
|
PublishFile(java.lang.String loginName,
java.lang.String passwd,
java.lang.String xmlKey,
byte[] content,
java.lang.String xmlQos)
Open the connection, publish the message, close the connection. |
|
| Method Summary | |
|---|---|
protected void |
feed(java.lang.String xmlKey,
byte[] content,
java.lang.String xmlQos)
open the connection, publish the message, close the connection |
static void |
main(java.lang.String[] args)
Invoke: java org.xmlBlaster.client.feeder.PublishFile -c |
void |
publish(java.lang.String xmlKey,
byte[] content,
java.lang.String qos)
Construct a message and publish it. |
protected void |
setUp()
Sets up the fixture. |
protected void |
tearDown()
Logout from xmlBlaster |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PublishFile(java.lang.String[] args)
throws XmlBlasterException
args - Command line arguments
XmlBlasterException
public PublishFile(java.lang.String loginName,
java.lang.String passwd,
java.lang.String xmlKey,
byte[] content,
java.lang.String xmlQos)
| Method Detail |
|---|
protected void feed(java.lang.String xmlKey,
byte[] content,
java.lang.String xmlQos)
protected void setUp()
protected void tearDown()
public void publish(java.lang.String xmlKey,
byte[] content,
java.lang.String qos)
public static void main(java.lang.String[] args)
|
xmlBlaster 2.1.0 client API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||