Class Response


  • public class Response
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void discardContent()
      Discards response content and deallocates all resources associated with it.
      <T> T handleResponse​(org.apache.http.client.ResponseHandler<T> handler)
      Handles the response using the specified ResponseHandler
      Content returnContent()  
      org.apache.http.HttpResponse returnResponse()  
      void saveContent​(java.io.File file)  
      • Methods inherited from class java.lang.Object

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

      • discardContent

        public void discardContent()
        Discards response content and deallocates all resources associated with it.
      • handleResponse

        public <T> T handleResponse​(org.apache.http.client.ResponseHandler<T> handler)
                             throws org.apache.http.client.ClientProtocolException,
                                    java.io.IOException
        Handles the response using the specified ResponseHandler
        Throws:
        org.apache.http.client.ClientProtocolException
        java.io.IOException
      • returnContent

        public Content returnContent()
                              throws org.apache.http.client.ClientProtocolException,
                                     java.io.IOException
        Throws:
        org.apache.http.client.ClientProtocolException
        java.io.IOException
      • returnResponse

        public org.apache.http.HttpResponse returnResponse()
                                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • saveContent

        public void saveContent​(java.io.File file)
                         throws java.io.IOException
        Throws:
        java.io.IOException