Class 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.
    • 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.