Interface StreamProvider
- All Known Implementing Classes:
AbstractStreamProvider
,CertificateStreamProvider
,InsecureStreamProvider
,TokenStreamProvider
public interface StreamProvider
-
Method Summary
Modifier and TypeMethodDescriptionopenStream
(String url, Map<String, String> headers, int connectTimeout, int readTimeout) Open stream to the specified URL.
-
Method Details
-
openStream
InputStream openStream(String url, Map<String, String> headers, int connectTimeout, int readTimeout) throws IOExceptionOpen stream to the specified URL.- Parameters:
url
- the urlheaders
- the headers mapconnectTimeout
- connection timeout in msreadTimeout
- read timeout in ms- Returns:
- the stream
- Throws:
IOException
- when an error occurs
-