Class AbstractStreamProvider
- java.lang.Object
- 
- org.apache.catalina.tribes.membership.cloud.AbstractStreamProvider
 
- 
- All Implemented Interfaces:
- StreamProvider
 - Direct Known Subclasses:
- CertificateStreamProvider,- InsecureStreamProvider,- TokenStreamProvider
 
 public abstract class AbstractStreamProvider extends java.lang.Object implements StreamProvider 
- 
- 
Field SummaryFields Modifier and Type Field Description protected static javax.net.ssl.TrustManager[]INSECURE_TRUST_MANAGERSprotected static StringManagersm
 - 
Constructor SummaryConstructors Constructor Description AbstractStreamProvider()
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected static javax.net.ssl.TrustManager[]configureCaCert(java.lang.String caCertFile)protected abstract javax.net.ssl.SSLSocketFactorygetSocketFactory()java.net.URLConnectionopenConnection(java.lang.String url, java.util.Map<java.lang.String,java.lang.String> headers, int connectTimeout, int readTimeout)Open URL connection to the specified URL.java.io.InputStreamopenStream(java.lang.String url, java.util.Map<java.lang.String,java.lang.String> headers, int connectTimeout, int readTimeout)Open stream to the specified URL.
 
- 
- 
- 
Field Detail- 
smprotected static final StringManager sm 
 - 
INSECURE_TRUST_MANAGERSprotected static final javax.net.ssl.TrustManager[] INSECURE_TRUST_MANAGERS 
 
- 
 - 
Method Detail- 
getSocketFactoryprotected abstract javax.net.ssl.SSLSocketFactory getSocketFactory() - Returns:
- the socket factory, or null if not needed
 
 - 
openConnectionpublic java.net.URLConnection openConnection(java.lang.String url, java.util.Map<java.lang.String,java.lang.String> headers, int connectTimeout, int readTimeout) throws java.io.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:
- java.io.IOException- when an error occurs
 
 - 
openStreampublic java.io.InputStream openStream(java.lang.String url, java.util.Map<java.lang.String,java.lang.String> headers, int connectTimeout, int readTimeout) throws java.io.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:
- java.io.IOException- when an error occurs
 
 - 
configureCaCertprotected static javax.net.ssl.TrustManager[] configureCaCert(java.lang.String caCertFile) throws java.lang.Exception- Throws:
- java.lang.Exception
 
 
- 
 
-