public class Output extends Input
Constructor and Description |
---|
Output(int code,
java.lang.String message)
Constructs a
Output with specified requestId , code and message . |
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Returns the status code of the output.
|
java.lang.String |
getMessage()
Returns the status code of the output.
|
void |
setCode(int code)
Sets the status code of the output.
|
void |
setMessage(java.lang.String message)
Sets the status message of the output.
|
add, add, add, add, add, add, add, addProperty, get, get, getAsBytes, getAsBytes, getAsNDArray, getAsNDArray, getAsNDList, getAsNDList, getAsString, getAsString, getContent, getData, getDataAsNDList, getProperties, getProperty, setContent, setProperties
public Output(int code, java.lang.String message)
Output
with specified requestId
, code
and message
.code
- the status code of the outputmessage
- the status message of the outputpublic int getCode()
public void setCode(int code)
code
- the status code of the outputpublic java.lang.String getMessage()
public void setMessage(java.lang.String message)
message
- the status message of the output