Class HTTPUtil.InterceptResponse

  • All Implemented Interfaces:
    org.apache.http.HttpResponseInterceptor
    Enclosing class:
    HTTPUtil

    public static class HTTPUtil.InterceptResponse
    extends Object
    implements org.apache.http.HttpResponseInterceptor
    • Field Detail

      • context

        protected org.apache.http.protocol.HttpContext context
      • headers

        protected List<org.apache.http.Header> headers
      • request

        protected org.apache.http.HttpRequest request
      • response

        protected org.apache.http.HttpResponse response
      • printheaders

        protected boolean printheaders
    • Constructor Detail

      • InterceptResponse

        public InterceptResponse()
    • Method Detail

      • process

        public void process​(org.apache.http.HttpResponse response,
                            org.apache.http.protocol.HttpContext context)
                     throws org.apache.http.HttpException,
                            IOException
        Specified by:
        process in interface org.apache.http.HttpResponseInterceptor
        Throws:
        org.apache.http.HttpException
        IOException
      • setPrint

        public ucar.httpservices.HTTPUtil.InterceptCommon setPrint​(boolean tf)
      • clear

        public void clear()
      • getRequest

        public org.apache.http.HttpRequest getRequest()
      • getResponse

        public org.apache.http.HttpResponse getResponse()
      • getContext

        public org.apache.http.protocol.HttpContext getContext()
      • getRequestEntity

        public org.apache.http.HttpEntity getRequestEntity()
      • getHeaders

        public List<org.apache.http.Header> getHeaders​(String key)