public class MessageEnvelope extends java.lang.Object implements XMLMarshallable
Java class represents the envelope of a message sent via the HTTP Communication Interface (HCI) technical interface;
it contains a header and a body with multiple operation requests for the connected SAP CC system.
The format of this message is specified by the HCI technical interface of SAP Convergent Charging.
Important Note
The connected SAP CC system processes the received HCI messages and included service operation requests. It performs the processing mode specified in the message headers.
Refer to the transactional mode for more information about the
'all', 'first fail', 'most', and 'try' execution modes in the SAP CC system.
Refer to the MessageSender Java interface if you want to design and develop a client application
that can manage service operations in HCI messages.
MessageSenderThe XML APIs specify the following XSD fragment:
| Constructor and Description |
|---|
MessageEnvelope() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element.
|
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the objects, the
child represents
the marshallable object to be added into the content tree. |
MessageBody |
getBody()
Returns the body of the message envelope.
|
MessageHeader |
getHeader()
Returns the header of the HCI message envelope.
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, and of its
children.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the tag being
processed.
|
void |
setBody(MessageBody b)
Sets a new body for this envelope.
|
void |
setHeader(MessageHeader h)
Sets a new header for this envelope.
|
java.lang.String |
toString() |
public MessageHeader getHeader()
public void setHeader(MessageHeader h)
h - A message headerpublic MessageBody getBody()
public void setBody(MessageBody b)
b - A message bodypublic void setAttributes(XMLAttributes atts)
setAttributes in interface XMLMarshallableatts - The XML attributes of the current tagpublic void addChild(java.lang.String tagName,
XMLMarshallable child)
child represents
the marshallable object to be added into the content tree.addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void addCharacterData(java.lang.String cData)
addCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
marshal in interface XMLMarshallableoutput - The XML output to marshal the object intopublic final java.lang.String toString()
toString in class java.lang.Object