public class Output
extends java.lang.Object
Constructor and Description |
---|
Output(java.lang.String requestId)
Constructs a
Output with specified requestId . |
Output(java.lang.String requestId,
int code,
java.lang.String message)
Constructs a
Output with specified requestId , code and message . |
Modifier and Type | Method and Description |
---|---|
void |
addProperty(java.lang.String key,
java.lang.String value)
Adds a property to the output.
|
int |
getCode()
Returns the status code of the output.
|
byte[] |
getContent()
Returns the content of the input.
|
java.lang.String |
getMessage()
Returns the status code of the output.
|
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
Returns the properties of the output.
|
java.lang.String |
getRequestId()
Returns the requestId of the output.
|
void |
setCode(int code)
Sets the status code of the output.
|
void |
setContent(byte[] content)
Sets the content of the input.
|
void |
setContent(java.lang.String content)
Sets the content of the input with string value.
|
void |
setMessage(java.lang.String message)
Sets the status message of the output.
|
void |
setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Sets the properties of the output.
|
public Output(java.lang.String requestId)
Output
with specified requestId
.requestId
- the requestId of the outputpublic Output(java.lang.String requestId, int code, java.lang.String message)
Output
with specified requestId
, code
and message
.requestId
- the requestId of the outputcode
- the status code of the outputmessage
- the status message of the outputpublic java.lang.String getRequestId()
public 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 outputpublic java.util.Map<java.lang.String,java.lang.String> getProperties()
public void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
properties
- the properties of the outputpublic void addProperty(java.lang.String key, java.lang.String value)
key
- key with which the specified value is to be addedvalue
- value to be added with the specified keypublic byte[] getContent()
public void setContent(byte[] content)
content
- the content of the inputpublic void setContent(java.lang.String content)
content
- the content of the input in string