Class DefaultHttpClient.HttpResponseImpl

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, HttpResponse
    Enclosing class:
    DefaultHttpClient

    public static class DefaultHttpClient.HttpResponseImpl
    extends java.lang.Object
    implements HttpResponse
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.net.http.HttpResponse<java.io.InputStream> response  
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpResponseImpl​(java.net.http.HttpResponse<java.io.InputStream> response)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.InputStream body()  
      void close()  
      java.util.Optional<java.lang.String> contentType()  
      java.util.Collection<java.lang.String> links()  
      java.util.Optional<java.lang.String> location()  
      int statusCode()  
      • Methods inherited from class java.lang.Object

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

      • response

        private final java.net.http.HttpResponse<java.io.InputStream> response
    • Constructor Detail

      • HttpResponseImpl

        HttpResponseImpl​(java.net.http.HttpResponse<java.io.InputStream> response)
    • Method Detail

      • body

        public java.io.InputStream body()
        Specified by:
        body in interface HttpResponse
      • links

        public java.util.Collection<java.lang.String> links()
        Specified by:
        links in interface HttpResponse
      • contentType

        public java.util.Optional<java.lang.String> contentType()
        Specified by:
        contentType in interface HttpResponse
      • location

        public java.util.Optional<java.lang.String> location()
        Specified by:
        location in interface HttpResponse
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable