Class HTTPMethodStream

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class HTTPMethodStream
    extends FilterInputStream
    implements Closeable
    The goal of this class is to allow other classes to access the data stream associated with a method response. It tracks the method and the session to allow them to be closed when the stream hits eof. It also guarantees that any remaining unconsumed input is consumed. Note that this class is not public in the package. Note that this code now includes the equivalent of Tom Kunicki's proposed pull request, but with the HTTPMethod close extension he proposes but does not implement. Pull request: https://github.com/tkunicki-usgs/thredds/commit/3b750ec0016a137db66336adeac421a9202b9d30 Is this class needed in httpclient 4.5+ any more?
    • Method Detail

      • isClosed

        public boolean isClosed()