Class BasicHttpResult

  • All Implemented Interfaces:
    HttpResult

    final class BasicHttpResult
    extends java.lang.Object
    implements HttpResult
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.apache.http.HttpEntity entity  
      private java.lang.String reason  
      private int status  
    • 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • status

        private final int status
      • reason

        private final java.lang.String reason
      • entity

        private final org.apache.http.HttpEntity entity
    • Constructor Detail

      • BasicHttpResult

        BasicHttpResult​(int status,
                        java.lang.String reason,
                        org.apache.http.HttpEntity entity)
    • Method Detail

      • reason

        public java.lang.String reason()
        Specified by:
        reason in interface HttpResult
      • copyContent

        public long copyContent​(java.nio.file.Path target,
                                java.nio.file.CopyOption... options)
                         throws java.io.IOException
        Specified by:
        copyContent in interface HttpResult
        Throws:
        java.io.IOException
      • copyContent

        public long copyContent​(java.io.OutputStream target)
                         throws java.io.IOException
        Specified by:
        copyContent in interface HttpResult
        Throws:
        java.io.IOException
      • contentCharset

        public java.nio.charset.Charset contentCharset()
        Specified by:
        contentCharset in interface HttpResult