Class TokenStreamProvider

    • Method Detail

      • getSocketFactory

        protected javax.net.ssl.SSLSocketFactory getSocketFactory()
        Specified by:
        getSocketFactory in class AbstractStreamProvider
        Returns:
        the socket factory, or null if not needed
      • openStream

        public 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.IOException
        Description copied from interface: StreamProvider
        Open stream to the specified URL.
        Specified by:
        openStream in interface StreamProvider
        Overrides:
        openStream in class AbstractStreamProvider
        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