public class RestStatusString
extends java.lang.Object
Constructor and Description |
---|
RestStatusString() |
RestStatusString(java.lang.String type,
java.lang.String message) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage()
Return the text string to display in the browser.
|
java.lang.String |
getType()
Return the type of the message.
|
void |
setMessage(java.lang.String message)
Set the text string to return to the browser.
|
void |
setType(java.lang.String type)
One of: "primary", "success", "info", "warning", or "danger".
|
public RestStatusString()
public RestStatusString(java.lang.String type, java.lang.String message)
public java.lang.String getType()
public void setType(java.lang.String type)
type
- the type to setpublic java.lang.String getMessage()
public void setMessage(java.lang.String message)
message
- the message to set