InvokeResponse Class
- java.
lang. Object - com.
microsoft. bot. builder. InvokeResponse
- com.
public class InvokeResponse
Tuple class containing an HTTP Status Code and a JSON Serializable object. The HTTP Status code is, in the invoke activity scenario, what will be set in the resulting POST. The Body of the resulting POST will be the JSON Serialized content from the Body property.
Constructor Summary
| Constructor | Description |
|---|---|
| InvokeResponse(int withStatus, Object withBody) |
Initializes new instance of Invoke |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.lang.Object |
getBody()
Gets the body content for the response. |
| boolean |
getIsSuccessStatusCode()
Returns if the status of the request was successful. |
| int |
getStatus()
Gets the HTTP status code for the response. |
| void |
setBody(Object withBody)
Sets the body content for the response. |
| void |
setStatus(int withStatus)
Sets the HTTP status code for the response. |
Methods inherited from java.lang.Object
Constructor Details
InvokeResponse
public InvokeResponse(int withStatus, Object withBody)
Initializes new instance of InvokeResponse.
Parameters:
Method Details
getBody
public Object getBody()
Gets the body content for the response.
Returns:
getIsSuccessStatusCode
public boolean getIsSuccessStatusCode()
Returns if the status of the request was successful.
Returns:
getStatus
public int getStatus()
Gets the HTTP status code for the response.
Returns:
setBody
public void setBody(Object withBody)
Sets the body content for the response.
Parameters:
setStatus
public void setStatus(int withStatus)
Sets the HTTP status code for the response.
Parameters: