Class URLConnector


  • public class URLConnector
    extends java.lang.Object
    URLConnector.java
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected URLConnector()  
      protected URLConnector​(java.net.URL url, java.lang.String clientCertAlias, int hostCertLevel, boolean trustAnyCert)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.net.URLConnection openConnection​(int timeout)
      Open connection url connection.
      static java.net.URLConnection openConnection​(java.net.URL url)  
      static java.net.URLConnection openConnection​(java.net.URL url, int timeout)  
      static java.net.URLConnection openConnection​(java.net.URL url, int timeout, java.lang.String clientCertAlias, int hostCertLevel)  
      static java.net.URLConnection openConnection​(java.net.URL url, java.lang.String clientCertAlias)  
      static java.net.URLConnection openUntrustedConnection​(java.net.URL url)  
      static java.net.URLConnection openUntrustedConnection​(java.net.URL url, int timeout)  
      static java.net.URLConnection openUntrustedConnection​(java.net.URL url, int timeout, java.lang.String clientCertAlias, int hostCertLevel)  
      static java.net.URLConnection openUntrustedConnection​(java.net.URL url, java.lang.String clientCertAlias)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • URLConnector

        protected URLConnector()
      • URLConnector

        protected URLConnector​(java.net.URL url,
                               java.lang.String clientCertAlias,
                               int hostCertLevel,
                               boolean trustAnyCert)
    • Method Detail

      • openConnection

        protected java.net.URLConnection openConnection​(int timeout)
                                                 throws java.io.IOException
        Open connection url connection.
        Parameters:
        timeout - the timeout
        Returns:
        the url connection
        Throws:
        java.io.IOException - the io exception
      • openConnection

        public static java.net.URLConnection openConnection​(java.net.URL url)
                                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • openConnection

        public static java.net.URLConnection openConnection​(java.net.URL url,
                                                            int timeout)
                                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • openConnection

        public static java.net.URLConnection openConnection​(java.net.URL url,
                                                            java.lang.String clientCertAlias)
                                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • openConnection

        public static java.net.URLConnection openConnection​(java.net.URL url,
                                                            int timeout,
                                                            java.lang.String clientCertAlias,
                                                            int hostCertLevel)
                                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • openUntrustedConnection

        public static java.net.URLConnection openUntrustedConnection​(java.net.URL url)
                                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • openUntrustedConnection

        public static java.net.URLConnection openUntrustedConnection​(java.net.URL url,
                                                                     int timeout)
                                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • openUntrustedConnection

        public static java.net.URLConnection openUntrustedConnection​(java.net.URL url,
                                                                     java.lang.String clientCertAlias)
                                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • openUntrustedConnection

        public static java.net.URLConnection openUntrustedConnection​(java.net.URL url,
                                                                     int timeout,
                                                                     java.lang.String clientCertAlias,
                                                                     int hostCertLevel)
                                                              throws java.io.IOException
        Throws:
        java.io.IOException