Class BasicHttpResult
- java.lang.Object
-
- org.eclipse.cbi.maven.http.apache.BasicHttpResult
-
- All Implemented Interfaces:
HttpResult
final class BasicHttpResult extends java.lang.Object implements HttpResult
-
-
Constructor Summary
Constructors Constructor Description BasicHttpResult(int status, java.lang.String reason, org.apache.http.HttpEntity entity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Method Detail
-
statusCode
public int statusCode()
- Specified by:
statusCode
in interfaceHttpResult
-
reason
public java.lang.String reason()
- Specified by:
reason
in interfaceHttpResult
-
contentLength
public long contentLength()
- Specified by:
contentLength
in interfaceHttpResult
-
copyContent
public long copyContent(java.nio.file.Path target, java.nio.file.CopyOption... options) throws java.io.IOException
- Specified by:
copyContent
in interfaceHttpResult
- Throws:
java.io.IOException
-
copyContent
public long copyContent(java.io.OutputStream target) throws java.io.IOException
- Specified by:
copyContent
in interfaceHttpResult
- Throws:
java.io.IOException
-
contentCharset
public java.nio.charset.Charset contentCharset()
- Specified by:
contentCharset
in interfaceHttpResult
-
-