Class Response


  • public class Response
    extends java.lang.Object
    • Field Detail

      • response

        private final org.apache.http.HttpResponse response
      • consumed

        private boolean consumed
    • Constructor Detail

      • Response

        Response​(org.apache.http.HttpResponse response)
    • Method Detail

      • assertNotConsumed

        private void assertNotConsumed()
      • dispose

        private void dispose()
      • discardContent

        public void discardContent()
        Discards response content and deallocates all resources associated with it.
      • 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