|
Sonic ESB API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XQMessageFactory
The XQMessageFactory is used for creating implementations of XQMessages. By default the XQMessageFactory will create JMS XQMessages, however, if an endpoint is specified then the factory will call into the endpoint to create a message of the correct type.
Method Summary | |
---|---|
XQMessage |
createMessage()
Create a new XQMessage. |
XQMessage |
createMessage(XQEndpoint endpoint)
Create a new XQMessage based on the specified XQEndpoint. |
XQMessage |
createMessage(XQMessage message)
Create a new XQMessage which is a clone of the specified message. |
java.lang.String |
getCorrelationId()
Gets the CorrelationID for this messageFactory |
XQAddress |
getReplyTo()
Get the Reply To address for this messageFactory |
void |
setCorrelationId(java.lang.String id)
Sets the CorrelationID for this message. |
void |
setReplyTo(XQAddress replyTo)
Sets the Reply To address for this message. |
Method Detail |
---|
XQMessage createMessage()
XQMessage createMessage(XQMessage message) throws XQMessageException
message
- the XQMessage you want to clone.
XQMessageException
- thrown if we fail to clone the messageXQMessage createMessage(XQEndpoint endpoint) throws XQEndpointException
endpoint
- the endpoint to to use to create the message
XQEndpointException
- thrown if the endpoint fails to create
the messagevoid setReplyTo(XQAddress replyTo)
replyTo
- to set as the replyTo address for all new messages
created by this messageFactoryXQAddress getReplyTo()
java.lang.String getCorrelationId()
void setCorrelationId(java.lang.String id)
id
- String to set as the correlationId for all new messages
created by this messageFactory
|
Sonic ESB API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |