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.
  • Constructor Details

    • 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 Details

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