Class AbstractStreamProvider
java.lang.Object
org.apache.catalina.tribes.membership.cloud.AbstractStreamProvider
- All Implemented Interfaces:
- StreamProvider
- Direct Known Subclasses:
- CertificateStreamProvider,- InsecureStreamProvider,- TokenStreamProvider
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static final TrustManager[]protected static final StringManager
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected static TrustManager[]configureCaCert(String caCertFile) protected abstract SSLSocketFactoryopenConnection(String url, Map<String, String> headers, int connectTimeout, int readTimeout) Open URL connection to the specified URL.openStream(String url, Map<String, String> headers, int connectTimeout, int readTimeout) Open stream to the specified URL.
- 
Field Details- 
sm
- 
INSECURE_TRUST_MANAGERS
 
- 
- 
Constructor Details- 
AbstractStreamProviderpublic AbstractStreamProvider()
 
- 
- 
Method Details- 
getSocketFactory- Returns:
- the socket factory, or null if not needed
 
- 
openConnectionpublic URLConnection openConnection(String url, Map<String, String> headers, int connectTimeout, int readTimeout) throws IOExceptionOpen URL connection to the specified URL.- Parameters:
- url- the url
- headers- the headers map
- connectTimeout- connection timeout in ms
- readTimeout- read timeout in ms
- Returns:
- the URL connection
- Throws:
- IOException- when an error occurs
 
- 
openStreampublic 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 interface- StreamProvider
- 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
 
- 
configureCaCert- Throws:
- Exception
 
 
-