Class TokenStreamProvider
java.lang.Object
org.apache.catalina.tribes.membership.cloud.AbstractStreamProvider
org.apache.catalina.tribes.membership.cloud.TokenStreamProvider
- All Implemented Interfaces:
StreamProvider
-
Field Summary
Fields inherited from class org.apache.catalina.tribes.membership.cloud.AbstractStreamProvider
INSECURE_TRUST_MANAGERS, sm -
Method Summary
Modifier and TypeMethodDescriptionprotected SSLSocketFactoryopenStream(String url, Map<String, String> headers, int connectTimeout, int readTimeout) Open stream to the specified URL.protected voidMethods inherited from class org.apache.catalina.tribes.membership.cloud.AbstractStreamProvider
configureCaCert, openConnection
-
Method Details
-
getSocketFactory
- Specified by:
getSocketFactoryin classAbstractStreamProvider- Returns:
- the socket factory, or null if not needed
-
setToken
-
openStream
public InputStream openStream(String url, Map<String, String> headers, int connectTimeout, int readTimeout) throws IOExceptionDescription copied from interface:StreamProviderOpen stream to the specified URL.- Specified by:
openStreamin interfaceStreamProvider- Overrides:
openStreamin classAbstractStreamProvider- Parameters:
url- the urlheaders- the headers mapconnectTimeout- connection timeout in msreadTimeout- read timeout in ms- Returns:
- the stream
- Throws:
IOException- when an error occurs
-