Class RestMessage
java.lang.Object
de.dlr.proseo.interfaces.rest.model.RestMessage
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe HTML content typeprotected StringThe notification endpoint (HTTP(S) or mail)protected StringThe message dataprotected StringThe message codeprotected StringPassword to authenticateprotected BooleanFlag to identify raw message dataprotected StringThe sender of the message(package private) static final longprotected StringThe subjectprotected StringUser to authenticate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the contentType.Returns the endpoint.Returns the message.Returns the messageCode.Returns the password.getRaw()Returns the raw.Returns the sender.Returns the subject.getUser()Returns the user.inthashCode()voidsetContentType(String contentType) Set the contentType.voidsetEndpoint(String endpoint) Set the endpoint.voidsetMessage(String message) Set the message.voidsetMessageCode(String messageCode) Set the messageCode.voidsetPassword(String password) Set the password.voidSet the raw.voidSet the sender.voidsetSubject(String subject) Set the subject.voidSet the user.toString()
-
Field Details
-
serialVersionUID
static final long serialVersionUID- See Also:
-
endpoint
The notification endpoint (HTTP(S) or mail) -
user
User to authenticate -
password
Password to authenticate -
subject
The subject -
contentType
The HTML content type -
messageCode
The message code -
raw
Flag to identify raw message data -
message
The message data -
sender
The sender of the message
-
-
Constructor Details
-
Method Details
-
getEndpoint
Returns the endpoint.- Returns:
- endpoint
-
setEndpoint
Set the endpoint.- Parameters:
endpoint- the new endpoint
-
getUser
Returns the user.- Returns:
- user
-
setUser
Set the user.- Parameters:
user- the new user
-
getPassword
Returns the password.- Returns:
- password
-
setPassword
Set the password.- Parameters:
password- the new password
-
getSubject
Returns the subject.- Returns:
- subject
-
setSubject
Set the subject.- Parameters:
subject- the new subject
-
getContentType
Returns the contentType.- Returns:
- contentType
-
setContentType
Set the contentType.- Parameters:
contentType- the new contentType
-
getMessageCode
Returns the messageCode.- Returns:
- messageCode
-
setMessageCode
Set the messageCode.- Parameters:
messageCode- the new messageCode
-
getRaw
Returns the raw.- Returns:
- raw
-
setRaw
Set the raw.- Parameters:
raw- the new raw
-
getMessage
Returns the message.- Returns:
- message
-
setMessage
Set the message.- Parameters:
message- the new message
-
getSender
Returns the sender.- Returns:
- sender
-
setSender
Set the sender.- Parameters:
sender- the new sender
-
hashCode
public int hashCode() -
equals
-
toString
-