public class TokenStreamProvider extends AbstractStreamProvider
INSECURE_TRUST_MANAGERS, sm
Modifier and Type | Method and Description |
---|---|
protected SSLSocketFactory |
getSocketFactory() |
InputStream |
openStream(String url,
Map<String,String> headers,
int connectTimeout,
int readTimeout)
Open stream to the specified URL.
|
configureCaCert, openConnection
protected SSLSocketFactory getSocketFactory()
getSocketFactory
in class AbstractStreamProvider
public InputStream openStream(String url, Map<String,String> headers, int connectTimeout, int readTimeout) throws IOException
StreamProvider
openStream
in interface StreamProvider
openStream
in class AbstractStreamProvider
url
- the urlheaders
- the headers mapconnectTimeout
- connection timeout in msreadTimeout
- read timeout in msIOException
- when an error occursCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.