public class SimpleMessage extends AbstractMessage
Constructor and Description |
---|
SimpleMessage() |
Modifier and Type | Method and Description |
---|---|
boolean |
canNormalize()
Returns whether the message can be normalized or not.
|
Message |
copy()
Create a copy of the message.
|
boolean |
isFault()
Returns whether or not the message is a fault message.
|
boolean |
isNormalized()
Returns whether the message is normalized or not.
|
Message |
normalize()
Normalizes the message.
|
Message |
normalizeCopy()
Normalizes the message leaving the original bound object unchanged.
|
Message |
normalizeCopyToXML()
Normalizes the message to an XML format leaving the original bound object unchanged.
|
Message |
normalizeToXML()
Normalizes the message to an XML format.
|
void |
setIsFault(boolean isFault) |
void |
setIsNormalized(boolean isNormalized) |
addAttachment, addPart, arePartsEmpty, canCarryBindingHeaders, copy, createAttachments, getAttachments, getBindingURI, getContent, getContentPartName, getContentType, getCorrelationID, getID, getPart, getPartNames, getParts, getProperties, getProperty, getPropertyNames, getSecuritySubject, getTransportHeaders, removePart, setAttachments, setBindingURI, setContent, setContentPartName, setContentType, setCorrelationID, setID, setProperties, setProperty, setSecuritySubject, setTransportHeaders
public boolean isFault()
Message
public void setIsFault(boolean isFault)
public void setIsNormalized(boolean isNormalized)
public boolean isNormalized()
Message
public Message normalizeToXML() throws GException
Message
Message.getContentPartName()
) will be translated into an XML representation.
A new normalized version of the message is returned. Due to the possibility of this
original object using InputStreams to hold its content, after normalization this object's
InputStreams will most likely be exhausted making this object unusable. To continue to use
this object after normalization in its original bound format, use
Message.normalizeCopyToXML()
instead.GException
- Thrown if unable to normalize.public Message normalizeCopyToXML() throws GException
Message
Message.getContentPartName()
) will be translated into an XML representation. A
new normalized version of the message is returned. In order to leave the original object
in tact it must be copied which may be expensive from a performance perspective.GException
- Thrown if unable to normalize.public boolean canNormalize()
Message
public Message normalize() throws GException
Message
Message.normalizeCopyToXML()
instead.GException
- Thrown if unable to normalize.public Message normalizeCopy() throws GException
Message
GException
- Thrown if unable to normalize.public Message copy() throws GException
Message
GException
- Thrown if unable to copy.?? 2022 Perforce Software, All rights reserved
This software is the confidential and proprietary information of Perforce, Inc. and is subject to copyright protection under laws of the United States of America and other countries. The use of this software should be in accordance with the license agreement terms you entered into with Perforce, Inc.