|
Oracle Fusion Middleware Infrastructure Management Java API Reference for Oracle SOA Suite 11g Release 1 (11.1.1) E10659-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Message<T>
Abstract message representation, the default implementation is an XML based message, that can be created via XMLMessageFactory.getInstance().createMessage
// create a std dom parser
DOMParser parser = new DOMParser();
parser.parse(new InputSource(new StringReader(xml)));
Element element = parser.getDocument().getDocumentElement();
Map <String, Element> payload = new HashMap<String, Element>();
payload.put(<payload part name>, element);
Message<Element> xmlMessage =
XMLMessageFactory.getInstance().createMessage(payload);
If the conversation id is set as property, the composite instance will get it injected and can be found back with the Locator, based on this id.
| Field Summary | |
|---|---|
static java.lang.String |
CONVERSATION_ID |
static java.lang.String |
FLOW_ID |
static java.lang.String |
PARENT_ID |
| Method Summary | |
|---|---|
void |
addAttachment(Attachment attachment)Adds a message attachment |
void |
addHeader(org.w3c.dom.Element header)Adds a protocol header to the message |
java.util.List<Attachment> |
getAttachments()Gets the message attachments |
java.util.List<org.w3c.dom.Element> |
getHeaders()Gets the protocol headers |
Payload<T> |
getPayload()Gets the message payload |
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()Gets the message properties |
java.lang.Object |
getProperty(java.lang.String name)Gets the specified message property value |
void |
setHeaders(java.util.List<org.w3c.dom.Element> headers)Replaces the current set of protocol headers with the specified set |
void |
setPayload(Payload<T> payload)Specifies the payload associated with the message |
void |
setProperties(java.util.Map<java.lang.String,java.lang.Object> properties)Replaces all existing properties on the message with the specified set |
void |
setProperty(java.lang.String name, java.lang.Object value)Sets a specific property on the message |
| Field Detail |
|---|
static final java.lang.String FLOW_ID
static final java.lang.String CONVERSATION_ID
static final java.lang.String PARENT_ID
| Method Detail |
|---|
void setPayload(Payload<T> payload)
payload - the payload of the message.Payload<T> getPayload()
void addAttachment(Attachment attachment)
attachment - an attachmentjava.util.List<Attachment> getAttachments()
void addHeader(org.w3c.dom.Element header)
header - the headervoid setHeaders(java.util.List<org.w3c.dom.Element> headers)
headers - the replacement headersjava.util.List<org.w3c.dom.Element> getHeaders()
void setProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
properties - the replacement propertiesjava.util.Map<java.lang.String,java.lang.Object> getProperties()
void setProperty(java.lang.String name,
java.lang.Object value)
name - the name of the propertyvalue - the value of the named propertyjava.lang.Object getProperty(java.lang.String name)
name - the property name
|
Oracle Fusion Middleware Infrastructure Management Java API Reference for Oracle SOA Suite 11g Release 1 (11.1.1) E10659-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||