Class AbstractMessageRequestDto

java.lang.Object
esendex.sdk.java.model.transfer.Dto
esendex.sdk.java.model.transfer.message.AbstractMessageRequestDto
Direct Known Subclasses:
MessageCollectionRequestDto, MessageRequestDto

public abstract class AbstractMessageRequestDto extends Dto
An AbstractMessageRequest is the base class for all Message requests whether that is a collection or a single message. This class directly holds the parsed xml data. Subclasses should merely allow selective access.
  • Constructor Details

    • AbstractMessageRequestDto

      public AbstractMessageRequestDto()
  • Method Details

    • setFrom

      public void setFrom(String from)
      Sets the alphanumeric originator for the message to appear to originate from.
      Parameters:
      from - the originator
    • setType

      public void setType(MessageType type)
      Sets the type.
      Parameters:
      type - the new type
    • setLang

      public void setLang(MessageLanguage lang)
      Sets the lang.
      Parameters:
      lang - the new lang
    • setRetries

      public void setRetries(Integer retries)
      Sets the retries.
      Parameters:
      retries - the new retries
    • setValidity

      public void setValidity(Integer validity)
      Sets the validity period for a message in hours (defaults to 0 which indicates the MAX allowed).
      Parameters:
      validity - the period in hours
    • setCharacterSet

      public void setCharacterSet(CharacterSet characterSet)
      Sets the retries.
      Parameters:
      characterSet - the new retries
    • toString

      public String toString()
      Overrides:
      toString in class Dto