Serializablepublic static final class HttpDataSource.InvalidResponseCodeException extends HttpDataSource.HttpDataSourceException
HttpDataSource.HttpDataSourceException.Type| Modifier and Type | Field | Description |
|---|---|---|
Map<String,List<String>> |
headerFields |
An unmodifiable map of the response header fields and values.
|
byte[] |
responseBody |
The response body.
|
int |
responseCode |
The response code that was outside of the 2xx range.
|
String |
responseMessage |
The http status message.
|
dataSpec, type, TYPE_CLOSE, TYPE_OPEN, TYPE_READ| Constructor | Description |
|---|---|
InvalidResponseCodeException(int responseCode,
String responseMessage,
Map<String,List<String>> headerFields,
DataSpec dataSpec) |
Deprecated.
|
InvalidResponseCodeException(int responseCode,
String responseMessage,
Map<String,List<String>> headerFields,
DataSpec dataSpec,
byte[] responseBody) |
|
InvalidResponseCodeException(int responseCode,
Map<String,List<String>> headerFields,
DataSpec dataSpec) |
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic final int responseCode
@Nullable public final String responseMessage
public final Map<String,List<String>> headerFields
public final byte[] responseBody
@Deprecated public InvalidResponseCodeException(int responseCode, Map<String,List<String>> headerFields, DataSpec dataSpec)
@Deprecated public InvalidResponseCodeException(int responseCode, @Nullable String responseMessage, Map<String,List<String>> headerFields, DataSpec dataSpec)