public abstract class AbstractResponse extends java.lang.Object implements Ds3Response
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
UTF8 |
| Constructor and Description |
|---|
AbstractResponse(WebResponse response) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkStatusCode(int... expectedStatuses) |
java.lang.String |
getChecksum() |
ChecksumType.Type |
getChecksumType() |
protected static java.lang.String |
getFirstHeaderValue(Headers headers,
java.lang.String key) |
WebResponse |
getResponse() |
protected static long |
getSizeFromHeaders(Headers headers) |
int |
getStatusCode() |
protected abstract void |
processResponse() |
public static final java.lang.String UTF8
public AbstractResponse(WebResponse response) throws java.io.IOException
java.io.IOExceptionprotected static java.lang.String getFirstHeaderValue(Headers headers, java.lang.String key)
protected static long getSizeFromHeaders(Headers headers)
protected abstract void processResponse()
throws java.io.IOException
java.io.IOExceptionpublic WebResponse getResponse()
public void checkStatusCode(int... expectedStatuses)
throws java.io.IOException
java.io.IOExceptionpublic int getStatusCode()
public java.lang.String getChecksum()
public ChecksumType.Type getChecksumType()