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 HttpResult
public java.lang.String reason()
reason
in interface HttpResult
public long contentLength()
contentLength
in interface HttpResult
public long copyContent(java.nio.file.Path target, java.nio.file.CopyOption... options) throws java.io.IOException
copyContent
in interface HttpResult
java.io.IOException
public long copyContent(java.io.OutputStream target) throws java.io.IOException
copyContent
in interface HttpResult
java.io.IOException
public java.nio.charset.Charset contentCharset()
contentCharset
in interface HttpResult