public class MessageStream
extends java.lang.Object
Constructor and Description |
---|
MessageStream(java.util.Map props) |
Modifier and Type | Method and Description |
---|---|
void |
collect(java.io.InputStream in,
XQueue xq,
int timeout)
collects the response for a request for testing purpose
|
void |
echo(XQueue xq)
echoes the message back for testing purpose
|
byte[] |
getEotBytes() |
int |
getOffhead() |
int |
getOfftail() |
java.lang.String |
getOperation() |
byte[] |
getSotBytes() |
long |
read(java.io.InputStream in,
XQueue xq)
It reads the byte stream from an InputStream, packages them
into JMS Messages and adds the messages to an XQueue.
|
long |
read(java.io.InputStream in,
XQueue xq,
java.lang.String[] pNames,
java.lang.String[] pValues)
It reads the byte stream from an InputStream, packages them into
JMS Messages and sets the properties before adding the messages to
an XQueue.
|
long |
request(java.io.InputStream in,
XQueue xq,
java.io.OutputStream out)
It listens on an XQueue for an incoming JMS messages and writes all
bytes to an OutputStream as the request.
|
long |
request(java.io.InputStream in,
XQueue xq,
java.io.OutputStream out,
QList msgList,
DelimitedBuffer sBuf)
It listens on an XQueue for incoming JMS messages and writes all
bytes to an OutputStream as the requests.
|
long |
respond(java.io.InputStream in,
XQueue xq,
java.io.OutputStream out,
QList msgList,
DelimitedBuffer sBuf,
CollectibleCells cells)
It reads the byte stream from an InputStream, packages them into
JMS Messages and adds the messages to an XQueue as the request.
|
long |
write(XQueue xq,
java.io.OutputStream out)
It gets JMS Messages from an XQueue and write all bytes to the
OutputStream continuously.
|
public long read(java.io.InputStream in, XQueue xq) throws java.io.IOException, javax.jms.JMSException
java.io.IOException
javax.jms.JMSException
public long read(java.io.InputStream in, XQueue xq, java.lang.String[] pNames, java.lang.String[] pValues) throws java.io.IOException, javax.jms.JMSException
java.io.IOException
javax.jms.JMSException
public long respond(java.io.InputStream in, XQueue xq, java.io.OutputStream out, QList msgList, DelimitedBuffer sBuf, CollectibleCells cells) throws java.io.IOException, javax.jms.JMSException
java.io.IOException
javax.jms.JMSException
public long request(java.io.InputStream in, XQueue xq, java.io.OutputStream out, QList msgList, DelimitedBuffer sBuf) throws java.io.IOException, javax.jms.JMSException, TimeoutException
java.io.IOException
javax.jms.JMSException
TimeoutException
public long request(java.io.InputStream in, XQueue xq, java.io.OutputStream out) throws java.io.IOException, TimeoutException, javax.jms.JMSException
java.io.IOException
TimeoutException
javax.jms.JMSException
public long write(XQueue xq, java.io.OutputStream out) throws java.io.IOException, TimeoutException, javax.jms.JMSException
java.io.IOException
TimeoutException
javax.jms.JMSException
public void collect(java.io.InputStream in, XQueue xq, int timeout) throws javax.jms.JMSException
javax.jms.JMSException
public void echo(XQueue xq) throws javax.jms.JMSException
javax.jms.JMSException
public java.lang.String getOperation()
public byte[] getSotBytes()
public byte[] getEotBytes()
public int getOfftail()
public int getOffhead()