Class RemoteBase.HttpClientClosingInputStream

java.lang.Object
java.io.InputStream
org.opencastproject.serviceregistry.api.RemoteBase.HttpClientClosingInputStream
All Implemented Interfaces:
Closeable, AutoCloseable
Enclosing class:
RemoteBase

public class RemoteBase.HttpClientClosingInputStream extends InputStream
A stream wrapper that closes the http response when the stream is closed. If a remote service proxy returns an inputstream, this implementation should be used to ensure that the http connection is closed properly.