Class MessageBuilder

    • Method Detail

      • setThread

        public MessageBuilder setThread​(java.lang.String thread)
      • setThread

        public MessageBuilder setThread​(java.lang.String thread,
                                        java.lang.String parent)
      • setSubject

        public MessageBuilder setSubject​(java.lang.String subject)
        Sets the subject of the message. The subject is a short description of message contents.
        Parameters:
        subject - the subject of the message.
        Returns:
        a reference to this builder.
      • addSubject

        public MessageBuilder addSubject​(java.lang.String language,
                                         java.lang.String subject)
        Adds a subject with a corresponding language.
        Parameters:
        language - the language of the subject being added.
        subject - the subject being added to the message.
        Returns:
        a reference to this builder.
        Throws:
        java.lang.NullPointerException - if the subject is null.
      • setBody

        public MessageBuilder setBody​(java.lang.CharSequence body)
        Sets the body of the message.
        Parameters:
        body - the body of the message.
        Returns:
        a reference to this builder.
        See Also:
        setBody(String)
      • setBody

        public MessageBuilder setBody​(java.lang.String body)
        Sets the body of the message. The body is the main message contents.
        Parameters:
        body - the body of the message.
        Returns:
        a reference to this builder.
      • addBody

        public MessageBuilder addBody​(java.lang.String language,
                                      java.lang.String body)
        Adds a body with a corresponding language.
        Parameters:
        language - the language of the body being added.
        body - the body being added to the message.
        Returns:
        a reference to this builder.