public class StatusMessage
extends java.lang.Object
Status Message for completed operations Mostly for successful operations
Constructor and Description |
---|
StatusMessage(java.lang.String message)
Constructor with message
|
StatusMessage(java.lang.String message,
java.lang.Object... args)
Constructor with message
|
Modifier and Type | Method and Description |
---|---|
StatusMessage |
addDetail(io.vertx.core.json.JsonObject jDetails) |
StatusMessage |
addDetail(java.lang.String detail)
When status needs to be more detailed, add here
|
StatusMessage |
setMessage(java.lang.String message) |
StatusMessage |
setStatus(java.lang.String status) |
StatusMessage |
setStatusCode(int statusCode) |
StatusMessage |
setUnid(java.lang.String unid) |
int |
statusCode() |
io.vertx.core.buffer.Buffer |
toBuffer()
Convenience function to return a status message as buffer mostly used in Buffer responses
|
io.vertx.core.json.JsonObject |
toJson() |
java.lang.String |
toString() |
public StatusMessage(java.lang.String message)
Constructor with message
message
- public StatusMessage(java.lang.String message, java.lang.Object... args)
Constructor with message
message
- args
- public StatusMessage addDetail(io.vertx.core.json.JsonObject jDetails)
jDetails
- public StatusMessage addDetail(java.lang.String detail)
When status needs to be more detailed, add here
detail
- public StatusMessage setMessage(java.lang.String message)
message
- the message to setpublic StatusMessage setStatus(java.lang.String status)
status
- the status to setpublic StatusMessage setStatusCode(int statusCode)
statusCode
- the statusCode to setpublic StatusMessage setUnid(java.lang.String unid)
unid
- the unid to setpublic int statusCode()
public io.vertx.core.buffer.Buffer toBuffer()
Convenience function to return a status message as buffer mostly used in Buffer responses
public io.vertx.core.json.JsonObject toJson()
public java.lang.String toString()
toString
in class java.lang.Object