Поделиться через


BatchResponseStep<T> Class

Type Parameters

T

public class BatchResponseStep<T>
extends BatchStep<T>

Response for the batch step

Field Summary

Modifier and Type Field and Description
protected ISerializer serializer

Serializer to use for response deserialization

int status

Http status code of the response

Constructor Summary

Constructor Description
BatchResponseStep()

Method Summary

Modifier and Type Method and Description
T2 getDeserializedBody(Class<T2> resultClass)

Returned the deserialized response body of the current step

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

Field Details

serializer

protected ISerializer serializer

Serializer to use for response deserialization

status

public int status

Http status code of the response

Constructor Details

BatchResponseStep

public BatchResponseStep()

Method Details

getDeserializedBody

public T2 getDeserializedBody(Class resultClass)

Returned the deserialized response body of the current step

Parameters:

resultClass - class of the resulting response body

Returns:

the deserialized response body

Throws:

GraphServiceException - when a bad request was sent
GraphFatalServiceException - when a bad request was sent

Applies to