Class TokenStreamProvider
- java.lang.Object
-
- org.jgroups.protocols.kubernetes.stream.BaseStreamProvider
-
- org.jgroups.protocols.kubernetes.stream.TokenStreamProvider
-
- All Implemented Interfaces:
StreamProvider
public class TokenStreamProvider extends BaseStreamProvider
Copied and adapted version from openshift-ping repository. A warning message is issued if ca cert file is undefined or not found rather than always using insecure stream or being mandatory and eventually failing.- Author:
- Ricardo Martinelli, Radoslav Husar
-
-
Constructor Summary
Constructors Constructor Description TokenStreamProvider(String token, String caCertFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamopenStream(String url, Map<String,String> headers, int connectTimeout, int readTimeout)-
Methods inherited from class org.jgroups.protocols.kubernetes.stream.BaseStreamProvider
openConnection
-
-
-
-
Method Detail
-
openStream
public InputStream openStream(String url, Map<String,String> headers, int connectTimeout, int readTimeout) throws IOException
- Throws:
IOException
-
-