Class Response

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, IResponse

    public final class Response
    extends java.lang.Object
    implements IResponse
    • Constructor Detail

      • Response

        public Response​(ICanceler cancelable,
                        java.io.Closeable client,
                        org.apache.hc.client5.http.classic.methods.HttpUriRequest request,
                        org.apache.hc.core5.http.HttpResponse response)
    • Method Detail

      • cacheControl

        public IOptional<java.util.List<java.lang.String>,​java.lang.RuntimeException> cacheControl()
        Specified by:
        cacheControl in interface IResponse
      • expires

        public IOptional<java.lang.String,​java.lang.RuntimeException> expires()
        Specified by:
        expires in interface IResponse
      • pragma

        public IOptional<java.lang.String,​java.lang.RuntimeException> pragma()
        Specified by:
        pragma in interface IResponse
      • getUri

        public java.lang.String getUri()
        Specified by:
        getUri in interface IResponse
      • getBody

        public java.lang.String getBody()
                                 throws java.io.IOException
        Specified by:
        getBody in interface IResponse
        Throws:
        java.io.IOException
      • getStatusText

        public java.lang.String getStatusText()
        Specified by:
        getStatusText in interface IResponse
      • getInputStream

        public java.io.InputStream getInputStream()
                                           throws java.io.IOException
        Specified by:
        getInputStream in interface IResponse
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface IResponse
        Throws:
        java.io.IOException
      • abort

        public void abort()
        Specified by:
        abort in interface IResponse