Class AbstractMessageRequestDto
java.lang.Object
esendex.sdk.java.model.transfer.Dto
esendex.sdk.java.model.transfer.message.AbstractMessageRequestDto
- Direct Known Subclasses:
MessageCollectionRequestDto
,MessageRequestDto
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setCharacterSet
(CharacterSet characterSet) Sets the retries.void
Sets the alphanumeric originator for the message to appear to originate from.void
setLang
(MessageLanguage lang) Sets the lang.void
setRetries
(Integer retries) Sets the retries.void
setType
(MessageType type) Sets the type.void
setValidity
(Integer validity) Sets the validity period for a message in hours (defaults to 0 which indicates the MAX allowed).toString()
-
Constructor Details
-
AbstractMessageRequestDto
public AbstractMessageRequestDto()
-
-
Method Details
-
setFrom
Sets the alphanumeric originator for the message to appear to originate from.- Parameters:
from
- the originator
-
setType
Sets the type.- Parameters:
type
- the new type
-
setLang
Sets the lang.- Parameters:
lang
- the new lang
-
setRetries
Sets the retries.- Parameters:
retries
- the new retries
-
setValidity
Sets the validity period for a message in hours (defaults to 0 which indicates the MAX allowed).- Parameters:
validity
- the period in hours
-
setCharacterSet
Sets the retries.- Parameters:
characterSet
- the new retries
-
toString
-