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.
|
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.
Use
#InvalidResponseCodeException(int, String, Map, DataSpec) . |
InvalidResponseCodeException(int responseCode,
java.lang.String responseMessage,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> headerFields,
DataSpec dataSpec) |
public final int responseCode
@Nullable public final java.lang.String responseMessage
public final java.util.Map<java.lang.String,java.util.List<java.lang.String>> headerFields
@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)
.public InvalidResponseCodeException(int responseCode, @Nullable java.lang.String responseMessage, java.util.Map<java.lang.String,java.util.List<java.lang.String>> headerFields, DataSpec dataSpec)