public class BatchJobUploadResponse extends Object
| Constructor and Description |
|---|
BatchJobUploadResponse(com.google.api.client.http.HttpResponse httpResponse,
long totalContentLength,
URI resumableSessionURI)
Constructs a new instance from a
HttpResponse. |
BatchJobUploadResponse(InputStream responseContent,
int httpStatus,
String httpResponseMessage,
long totalContentLength,
URI resumableSessionURI) |
| Modifier and Type | Method and Description |
|---|---|
BatchJobUploadStatus |
getBatchJobUploadStatus() |
String |
getHttpResponseMessage() |
int |
getHttpStatus() |
InputStream |
getResponseContent()
Returns the HTTP response content.
|
String |
toString() |
public BatchJobUploadResponse(InputStream responseContent, int httpStatus, String httpResponseMessage, long totalContentLength, @Nullable URI resumableSessionURI)
responseContent - the contents of the responsehttpStatus - the HTTP status code from the responsehttpResponseMessage - the HTTP status message from the responsetotalContentLength - the total content length for the batch job, including the length
from this response's corresponding requestresumableSessionURI - the URI to use for further incremental uploadsNullPointerException - if responseContent is null.public BatchJobUploadResponse(com.google.api.client.http.HttpResponse httpResponse,
long totalContentLength,
@Nullable
URI resumableSessionURI)
throws IOException
HttpResponse.httpResponse - the responsetotalContentLength - the total content length for the batch job, including the length
from this response's corresponding requestresumableSessionURI - the URI to use for further incremental uploadsIOException - if unable to get attributes of the responseNullPointerException - is httpResponse is null.public int getHttpStatus()
public String getHttpResponseMessage()
public InputStream getResponseContent()
public BatchJobUploadStatus getBatchJobUploadStatus()
Copyright © 2020. All Rights Reserved.