use of com.swiftmq.jms.TextMessageImpl in project swiftmq-client by iitsoftware.
the class FileQueryPropsReply method toMessage.
public Message toMessage() throws JMSException {
TextMessage message = new TextMessageImpl();
message.setIntProperty(ProtocolFactory.DUMPID_PROP, ProtocolFactory.FILEQUERYPROPS_REP);
if (result != null && result.size() > 0) {
XStream xStream = new XStream(new Dom4JDriver());
StringWriter writer = new StringWriter();
xStream.toXML(result, writer);
message.setText(writer.toString());
}
return fillMessage(message);
}
use of com.swiftmq.jms.TextMessageImpl in project swiftmq-client by iitsoftware.
the class FileQueryRequest method toMessage.
public Message toMessage() throws JMSException {
TextMessage message = new TextMessageImpl();
message.setIntProperty(ProtocolFactory.DUMPID_PROP, ProtocolFactory.FILEQUERY_REQ);
fillMessage(message);
message.setText(selector);
return message;
}
use of com.swiftmq.jms.TextMessageImpl in project swiftmq-client by iitsoftware.
the class FileChunkReply method toMessage.
public Message toMessage() throws JMSException {
TextMessage message = new TextMessageImpl();
message.setIntProperty(ProtocolFactory.DUMPID_PROP, ProtocolFactory.FILECHUNK_REP);
message.setIntProperty(CHUNKNO_PROP, chunkNo);
if (link != null)
message.setText(link);
return fillMessage(message);
}
use of com.swiftmq.jms.TextMessageImpl in project swiftmq-client by iitsoftware.
the class FileConsumeRequest method toMessage.
public Message toMessage() throws JMSException {
TextMessage message = new TextMessageImpl();
fillMessage(message);
message.setIntProperty(ProtocolFactory.DUMPID_PROP, ProtocolFactory.FILECONSUME_REQ);
message.setStringProperty(QUEUENAME_PROP, queueName);
message.setIntProperty(REPLYINTERVAL_PROP, replyInterval);
if (passwordHexDigest != null)
message.setStringProperty(PWDHEXDIGEST_PROP, passwordHexDigest);
message.setText(link);
return message;
}
use of com.swiftmq.jms.TextMessageImpl in project swiftmq-client by iitsoftware.
the class FileDeleteRequest method toMessage.
public Message toMessage() throws JMSException {
TextMessage message = new TextMessageImpl();
fillMessage(message);
message.setIntProperty(ProtocolFactory.DUMPID_PROP, ProtocolFactory.FILEDELETE_REQ);
if (passwordHexDigest != null)
message.setStringProperty(PWDHEXDIGEST_PROP, passwordHexDigest);
message.setText(link);
return message;
}
Aggregations