public static final class HttpDataSource.InvalidResponseCodeException extends HttpDataSource.HttpDataSourceException
HttpDataSource.HttpDataSourceException.Type| Modifier and Type | Field and Description |
|---|---|
java.util.Map<java.lang.String,java.util.List<java.lang.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.
|
java.lang.String |
responseMessage
The http status message.
|
dataSpec, type, TYPE_CLOSE, TYPE_OPEN, TYPE_READ| Constructor and Description |
|---|
InvalidResponseCodeException(int responseCode,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> headerFields,
DataSpec dataSpec)
Deprecated.
|
InvalidResponseCodeException(int responseCode,
java.lang.String responseMessage,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> headerFields,
DataSpec dataSpec)
Deprecated.
|
InvalidResponseCodeException(int responseCode,
java.lang.String responseMessage,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> headerFields,
DataSpec dataSpec,
byte[] responseBody) |
public final int responseCode
public final java.lang.String responseMessage
public final java.util.Map<java.lang.String,java.util.List<java.lang.String>> headerFields
public final byte[] responseBody
@Deprecated
public InvalidResponseCodeException(int responseCode,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> headerFields,
DataSpec dataSpec)
InvalidResponseCodeException(int, String, Map, DataSpec, byte[]).@Deprecated
public InvalidResponseCodeException(int responseCode,
java.lang.String responseMessage,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> headerFields,
DataSpec dataSpec)
InvalidResponseCodeException(int, String, Map, DataSpec, byte[]).public InvalidResponseCodeException(int responseCode,
java.lang.String responseMessage,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> headerFields,
DataSpec dataSpec,
byte[] responseBody)