Class SimpleHttpResponse

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static SimpleHttpResponse copy​(org.apache.hc.core5.http.HttpResponse original)  
      static SimpleHttpResponse create​(int code)  
      static SimpleHttpResponse create​(int code, byte[] content)  
      static SimpleHttpResponse create​(int code, byte[] content, org.apache.hc.core5.http.ContentType contentType)  
      static SimpleHttpResponse create​(int code, java.lang.String content)  
      static SimpleHttpResponse create​(int code, java.lang.String content, org.apache.hc.core5.http.ContentType contentType)  
      SimpleBody getBody()  
      byte[] getBodyBytes()  
      java.lang.String getBodyText()  
      org.apache.hc.core5.http.ContentType getContentType()  
      void setBody​(byte[] bodyBytes, org.apache.hc.core5.http.ContentType contentType)  
      void setBody​(java.lang.String bodyText, org.apache.hc.core5.http.ContentType contentType)  
      void setBody​(SimpleBody body)  
      • Methods inherited from class org.apache.hc.core5.http.message.BasicHttpResponse

        addHeader, getCode, getLocale, getReason, getReasonPhrase, getVersion, setCode, setHeader, setLocale, setReasonPhrase, setVersion, toString
      • Methods inherited from class org.apache.hc.core5.http.message.HeaderGroup

        addHeader, clear, containsHeader, countHeaders, getCondensedHeader, getFirstHeader, getHeader, getHeaders, getHeaders, getLastHeader, headerIterator, headerIterator, removeHeader, removeHeaders, removeHeaders, setHeader, setHeaders
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.apache.hc.core5.http.HttpMessage

        addHeader, removeHeader, removeHeaders, setHeader, setHeaders
      • Methods inherited from interface org.apache.hc.core5.http.MessageHeaders

        containsHeader, countHeaders, getFirstHeader, getHeader, getHeaders, getHeaders, getLastHeader, headerIterator, headerIterator
    • Constructor Detail

      • SimpleHttpResponse

        public SimpleHttpResponse​(int code)
      • SimpleHttpResponse

        public SimpleHttpResponse​(int code,
                                  java.lang.String reasonPhrase)
    • Method Detail

      • copy

        public static SimpleHttpResponse copy​(org.apache.hc.core5.http.HttpResponse original)
      • create

        public static SimpleHttpResponse create​(int code,
                                                java.lang.String content,
                                                org.apache.hc.core5.http.ContentType contentType)
      • create

        public static SimpleHttpResponse create​(int code,
                                                java.lang.String content)
      • create

        public static SimpleHttpResponse create​(int code,
                                                byte[] content,
                                                org.apache.hc.core5.http.ContentType contentType)
      • setBody

        public void setBody​(SimpleBody body)
      • setBody

        public void setBody​(byte[] bodyBytes,
                            org.apache.hc.core5.http.ContentType contentType)
      • setBody

        public void setBody​(java.lang.String bodyText,
                            org.apache.hc.core5.http.ContentType contentType)
      • getContentType

        public org.apache.hc.core5.http.ContentType getContentType()
      • getBodyText

        public java.lang.String getBodyText()
      • getBodyBytes

        public byte[] getBodyBytes()