T - the type parameterpublic final class FluentResponse<T>
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
| class  | FluentResponse.ByteArrayResponse<T>The type Byte array response. | 
| class  | FluentResponse.JSONResponse<T>The type JSON response. | 
| Modifier and Type | Method and Description | 
|---|---|
| static <T> FluentResponse<T> | of(com.squareup.okhttp.Response httpResponse,
  int expectedHttpStatus)Of fluent response. | 
| static <T> FluentResponse<T> | of(com.squareup.okhttp.Response httpResponse,
  int[] expectedHttpStatuses)Creates fluent responses with  Responseand array of expected http codes | 
| FluentResponse.ByteArrayResponse<T> | transformToByteArray()Transform to byte array. | 
| FluentResponse.JSONResponse<T> | transformToJSON()Transform to jSON. | 
public static <T> FluentResponse<T> of(com.squareup.okhttp.Response httpResponse, int expectedHttpStatus)
T - the type parameterhttpResponse - the http responseexpectedHttpStatus - the expected http statuspublic static <T> FluentResponse<T> of(com.squareup.okhttp.Response httpResponse, int[] expectedHttpStatuses)
Response and array of expected http codes
 If returned http status code is in expected array all transformation will be done, otherwise not
httpResponse - the http responseexpectedHttpStatuses - the expected statusespublic FluentResponse.JSONResponse<T> transformToJSON()
public FluentResponse.ByteArrayResponse<T> transformToByteArray()