final class BasicHttpResult extends java.lang.Object implements HttpResult
| Modifier and Type | Field and Description |
|---|---|
private org.apache.http.HttpEntity |
entity |
private java.lang.String |
reason |
private int |
status |
| Constructor and Description |
|---|
BasicHttpResult(int status,
java.lang.String reason,
org.apache.http.HttpEntity entity) |
| Modifier and Type | Method and Description |
|---|---|
java.nio.charset.Charset |
contentCharset() |
long |
contentLength() |
long |
copyContent(java.io.OutputStream target) |
long |
copyContent(java.nio.file.Path target,
java.nio.file.CopyOption... options) |
java.lang.String |
reason() |
int |
statusCode() |
private final int status
private final java.lang.String reason
private final org.apache.http.HttpEntity entity
BasicHttpResult(int status,
java.lang.String reason,
org.apache.http.HttpEntity entity)
public int statusCode()
statusCode in interface HttpResultpublic java.lang.String reason()
reason in interface HttpResultpublic long contentLength()
contentLength in interface HttpResultpublic long copyContent(java.nio.file.Path target,
java.nio.file.CopyOption... options)
throws java.io.IOException
copyContent in interface HttpResultjava.io.IOExceptionpublic long copyContent(java.io.OutputStream target)
throws java.io.IOException
copyContent in interface HttpResultjava.io.IOExceptionpublic java.nio.charset.Charset contentCharset()
contentCharset in interface HttpResult