Class Response
- java.lang.Object
-
- com.tarsolution.notifyman.shared.plugin.outbound.Response
-
- All Implemented Interfaces:
Serializable
public class Response extends Object implements Serializable
Class defines the response pattern for yourAbstractOutbound.send(com.tarsolution.notifyman.shared.common.Message)
method- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Response(StatusEnum status, String message)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Response
error(String message)
String
getMessage()
StatusEnum
getStatus()
static Response
ok()
void
setMessage(String message)
void
setStatus(StatusEnum status)
static Response
warning(String message)
-
-
-
Constructor Detail
-
Response
public Response(StatusEnum status, String message)
- Parameters:
status
- is requiredmessage
- is required
-
-
Method Detail
-
ok
public static Response ok()
-
getStatus
public StatusEnum getStatus()
-
setStatus
public void setStatus(StatusEnum status)
-
getMessage
public String getMessage()
-
setMessage
public void setMessage(String message)
-
-