Share via


TypedInvokeResponse<T> Class

Type Parameters

T

The type for the body of the TypedInvokeResponse.

public class TypedInvokeResponse<T>
extends 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
TypedInvokeResponse(int withStatus, T withBody)

Initializes new instance of InvokeResponse.

Method Summary

Modifier and Type Method and Description
T getTypedBody()

Gets the body content for the response.

void setTypedBody(T withBody)

Sets the body with a typed value.

Methods inherited from InvokeResponse

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

TypedInvokeResponse

public TypedInvokeResponse(int withStatus, T withBody)

Initializes new instance of InvokeResponse.

Parameters:

withStatus - The invoke response status.
withBody - The invoke response body.

Method Details

getTypedBody

public T getTypedBody()

Gets the body content for the response.

Returns:

The body content.

setTypedBody

public void setTypedBody(T withBody)

Sets the body with a typed value.

Parameters:

withBody - the typed value to set the body to.

Applies to