public static final class HttpDataSource.InvalidResponseCodeException extends HttpDataSource.HttpDataSourceException
HttpDataSource.HttpDataSourceException.Type| 限定符和类型 | 字段和说明 |
|---|---|
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| 构造器和说明 |
|---|
InvalidResponseCodeException(int responseCode,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> headerFields,
DataSpec dataSpec)
已过时。
Use
#InvalidResponseCodeException(int, String, Map, DataSpec, byte[]). |
InvalidResponseCodeException(int responseCode,
java.lang.String responseMessage,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> headerFields,
DataSpec dataSpec)
已过时。
Use
#InvalidResponseCodeException(int, String, Map, DataSpec, byte[]). |
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)