Package com.isode.x400.highlevel
Class BodypartForwardedMessage
- java.lang.Object
-
- com.isode.x400.highlevel.Bodypart
-
- com.isode.x400.highlevel.BodypartForwardedMessage
-
public class BodypartForwardedMessage extends Bodypart
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
Constructors Constructor Description BodypartForwardedMessage(BodyPart bp_obj)
Constructor based on an existing BodyPart object, for example, one read from an existing messageBodypartForwardedMessage(MSMessage msg)
Constructor based on an existing existing MSMessage object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Message
getFwdMessage()
MSMessage
getFwdMSMessage()
java.lang.String
getStringRepresentation()
void
setFwdMessage(Message fwdMsg)
Sets the "Message" object that represents the forwarded messagevoid
setFwdMSMessage(MSMessage fwd)
Sets the "MSMessage" object that represents the forwarded message-
Methods inherited from class com.isode.x400.highlevel.Bodypart
getBodypartObject, getByteParam, getIntParam, getSize, getStringParam, getType, getTypeAsString, saveBP, setByteParam, setIntParam, setSize, setStringParam
-
-
-
-
Constructor Detail
-
BodypartForwardedMessage
public BodypartForwardedMessage(MSMessage msg) throws X400APIException
Constructor based on an existing existing MSMessage object.- Parameters:
msg
-- Throws:
X400APIException
-
BodypartForwardedMessage
public BodypartForwardedMessage(BodyPart bp_obj) throws X400APIException
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 Detail
-
setFwdMessage
public void setFwdMessage(Message fwdMsg)
Sets the "Message" object that represents the forwarded message- Parameters:
fwdMsg
- Must not be null
-
getFwdMessage
public Message getFwdMessage()
- Returns:
- the "Message" object that represents the forwarded message. The value will not be null.
-
setFwdMSMessage
public void setFwdMSMessage(MSMessage fwd)
Sets the "MSMessage" object that represents the forwarded message- Parameters:
fwd
- Must not be null
-
getFwdMSMessage
public MSMessage getFwdMSMessage()
- Returns:
- the "MSMessage" object that represents the forwarded message The value will not be null
-
getStringRepresentation
public java.lang.String 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.
-
-