Package com.amazonaws.kinesisvideo.model
Class Response
- java.lang.Object
-
- com.amazonaws.kinesisvideo.model.Response
-
public class Response extends Object
Response object which is parsed from the http response to status line, headers and the body.- Author:
- bdhandap
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResponse.ResponseBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Response.ResponseBuilderbuilder()StringgetResponseBody()Response body as string if the response contains text response.Map<String,String>getResponseHeaders()Key value pair of all the headers in the response.InputStreamgetResponsePayload()Response as the raw input stream.ResponseStatusgetResponseStatus()Status line with status code and reason.StringtoString()
-
-
-
Method Detail
-
builder
public static Response.ResponseBuilder builder()
-
getResponseStatus
public ResponseStatus getResponseStatus()
Status line with status code and reason. Eg :400, 404, etc
-
getResponseHeaders
public Map<String,String> getResponseHeaders()
Key value pair of all the headers in the response.
-
getResponseBody
public String getResponseBody()
Response body as string if the response contains text response.
-
getResponsePayload
public InputStream getResponsePayload()
Response as the raw input stream.
-
-