StreamProvider (Apache Tomcat 9.0.37 API Documentation)

org.apache.catalina.tribes.membership.cloud

## Interface StreamProvider

- All Known Implementing Classes:
    AbstractStreamProvider, CertificateStreamProvider, InsecureStreamProvider, TokenStreamProvider

      public interface StreamProvider

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `InputStream` | `openStream(String url, Map<String,String> headers, int connectTimeout, int readTimeout)` Open stream to the specified URL.

- - ### Method Detail

    - #### openStream

          InputStream openStream(String url,
                                 Map<String,String> headers,
                                 int connectTimeout,
                                 int readTimeout)
                          throws IOException

      Open stream to the specified URL.
      Parameters:
        `url` - the url
        `headers` - the headers map
        `connectTimeout` - connection timeout in ms
        `readTimeout` - read timeout in ms
      Returns:
        the stream
      Throws:
        `IOException` - when an error occurs

Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.