|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServiceMessageObject
Provides the interface for the Service Message Object.
The following features are supported:
Field Summary | |
---|---|
static java.lang.String |
$sccsid
|
static java.lang.String |
COPYRIGHT
|
static java.lang.String |
SMO_EXCEPTION_TYPE
This is the value set into the MessageType field of the SMOHeader when the SMO represents an exception message. |
static java.lang.String |
SMO_REQUEST_TYPE
This is the value set into the MessageType field of the SMOHeader when the SMO represents a request message. |
static java.lang.String |
SMO_RESPONSE_TYPE
This is the value set into the MessageType field of the SMOHeader when the SMO represents a response message. |
static java.lang.String |
UNMODELLED_FAULT_ORIGIN
This is the value set into the failInfo.origin field for an unmodelled fault |
Method Summary | |
---|---|
AttachmentType |
addAttachment(java.lang.String contentID,
java.lang.String contentType,
byte[] data)
Creates a new attachment with the provided content and adds it to the ServiceMessageObject. |
AttachmentType |
getAttachment(java.lang.String contentID)
Searches the ServiceMessageObject for an attachment with the given 'contentID' and returns the attachment. |
byte[] |
getAttachmentData(java.lang.String contentID)
Searches the ServiceMessageObject for an attachment with the given 'contentID' and returns the value of the ' Data ' attribute of the attachment. |
java.util.List<AttachmentType> |
getAttachments()
Returns the value of the 'Attachments' containment reference list. |
java.lang.Object |
getBody()
Returns the value of the 'Body' containment reference. |
java.lang.Object |
getBodyForSCAMessage(boolean isFaultMessage,
boolean copySMOBody)
Deprecated. |
boolean |
getBodyPopulated()
Deprecated. |
ContextType |
getContext()
Returns the value of the 'Context' containment reference. |
HeadersType |
getHeaders()
Returns the value of the 'Headers' containment reference. |
boolean |
getSoapFaultInfoPopulated()
Deprecated. |
AttachmentType |
removeAttachment(java.lang.String contentID)
Searches the ServiceMessageObject for an attachment with the given 'contentID' and removes the attachment from the ServiceMessageObject. |
void |
saveSCAData(com.ibm.wsspi.sca.message.Message donorSCAMessage,
ServiceMessageObject requestSMO)
Deprecated. |
void |
setBody(java.lang.Object value)
Sets the value of the ' Body ' containment reference. |
void |
setBodyPopulated()
Deprecated. |
void |
setContext(ContextType value)
Sets the value of the ' Context ' containment reference. |
void |
setHeaders(HeadersType value)
Sets the value of the ' Headers ' containment reference. |
void |
setSoapFaultInfoPopulated()
Deprecated. |
Methods inherited from interface commonj.sdo.DataObject |
---|
createDataObject, createDataObject, createDataObject, createDataObject, createDataObject, createDataObject, delete, detach, get, get, get, getBigDecimal, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getBytes, getBytes, getBytes, getChangeSummary, getChar, getChar, getChar, getContainer, getContainmentProperty, getDataGraph, getDataObject, getDataObject, getDataObject, getDate, getDate, getDate, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInstanceProperties, getInstanceProperty, getInt, getInt, getInt, getList, getList, getList, getLong, getLong, getLong, getProperty, getRootObject, getSequence, getSequence, getSequence, getSequence, getShort, getShort, getShort, getString, getString, getString, getType, isSet, isSet, isSet, set, set, set, setBigDecimal, setBigDecimal, setBigDecimal, setBigInteger, setBigInteger, setBigInteger, setBoolean, setBoolean, setBoolean, setByte, setByte, setByte, setBytes, setBytes, setBytes, setChar, setChar, setChar, setDataObject, setDataObject, setDataObject, setDate, setDate, setDate, setDouble, setDouble, setDouble, setFloat, setFloat, setFloat, setInt, setInt, setInt, setList, setList, setList, setLong, setLong, setLong, setShort, setShort, setShort, setString, setString, setString, unset, unset, unset |
Field Detail |
---|
static final java.lang.String COPYRIGHT
static final java.lang.String $sccsid
static final java.lang.String SMO_REQUEST_TYPE
static final java.lang.String SMO_RESPONSE_TYPE
static final java.lang.String SMO_EXCEPTION_TYPE
static final java.lang.String UNMODELLED_FAULT_ORIGIN
Method Detail |
---|
ContextType getContext()
This context folder contains both the transient and correlation contexts.
setContext(ContextType)
void setContext(ContextType value)
Context
' containment reference.
value
- the new value of the 'Context' containment reference.getContext()
HeadersType getHeaders()
This headers folder contains all of the other headers, fault information and message properties.
setHeaders(HeadersType)
void setHeaders(HeadersType value)
Headers
' containment reference.
value
- the new value of the 'Headers' containment reference.getHeaders()
java.lang.Object getBody()
This body is the payload of the message and might typically contain application data.
setBody(Object)
void setBody(java.lang.Object value)
Body
' containment reference.
value
- the new value of the 'Body' containment reference. Note that
this must be a commonj.sdo.DataObject rather than a simple java.lang.Object.getBody()
java.util.List<AttachmentType> getAttachments()
AttachmentType
.
java.lang.Object getBodyForSCAMessage(boolean isFaultMessage, boolean copySMOBody)
boolean getBodyPopulated()
void setBodyPopulated()
boolean getSoapFaultInfoPopulated()
void setSoapFaultInfoPopulated()
void saveSCAData(com.ibm.wsspi.sca.message.Message donorSCAMessage, ServiceMessageObject requestSMO)
AttachmentType addAttachment(java.lang.String contentID, java.lang.String contentType, byte[] data)
contentID
- value of the 'Content ID
' attribute.contentType
- the value of the 'Content Type
' attribute.data
- value of the 'Data
' attribute.
java.lang.IllegalArgumentException
- if the contentID is null, or if the ServiceMessageObject already contains
an attachment with the same contentID.AttachmentType getAttachment(java.lang.String contentID)
contentID
- value of the 'Content ID
'
attribute to search for.
byte[] getAttachmentData(java.lang.String contentID)
Data
' attribute of the attachment.
contentID
- value of the 'Content ID
'
attribute to search for.
AttachmentType removeAttachment(java.lang.String contentID)
contentID
- value of the 'Content ID
'
attribute to search for.
|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |