Package com.isode.x400.highlevel
Class BodypartForwardedMessage
java.lang.Object
com.isode.x400.highlevel.Bodypart
com.isode.x400.highlevel.BodypartForwardedMessage
This class represents a Forwarded Message bodypart.
This kind of bodypart is used to include an entire message as a bodypart
of another message.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.isode.x400.highlevel.Bodypart
Bodypart.Bodypart_Type -
Field Summary
Fields inherited from class com.isode.x400.highlevel.Bodypart
bodypart_size, bodypart_type -
Constructor Summary
ConstructorsConstructorDescriptionBodypartForwardedMessage(BodyPart bp_obj) Constructor based on an existing BodyPart object, for example, one read from an existing messageConstructor based on an existing existing MSMessage object. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetFwdMessage(Message fwdMsg) Sets the "Message" object that represents the forwarded messagevoidsetFwdMSMessage(MSMessage fwd) Sets the "MSMessage" object that represents the forwarded messageMethods inherited from class com.isode.x400.highlevel.Bodypart
getBodypartObject, getByteParam, getIntParam, getSize, getStringParam, getType, getTypeAsString, saveBP, setByteParam, setIntParam, setSize, setStringParam
-
Constructor Details
-
BodypartForwardedMessage
Constructor based on an existing existing MSMessage object.- Parameters:
msg-- Throws:
X400APIException
-
BodypartForwardedMessage
Constructor based on an existing BodyPart object, for example, one read from an existing message- Parameters:
bp_obj- Must not be null- Throws:
X400APIException
-
-
Method Details
-
setFwdMessage
Sets the "Message" object that represents the forwarded message- Parameters:
fwdMsg- Must not be null
-
getFwdMessage
- Returns:
- the "Message" object that represents the forwarded message. The value will not be null.
-
setFwdMSMessage
Sets the "MSMessage" object that represents the forwarded message- Parameters:
fwd- Must not be null
-
getFwdMSMessage
- Returns:
- the "MSMessage" object that represents the forwarded message The value will not be null
-
getStringRepresentation
- Returns:
- a string representation of message bodypart.
The format of this string is suitable for informing the user about the forwarded message bodypart, but does not contain all the information.
The returned value will never be null.
-