Class URLConnectionFactory


  • public class URLConnectionFactory
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.net.URLConnection create​(java.lang.String host, int port, java.lang.String file, boolean secured)  
      static java.net.URLConnection create​(java.net.URL url)  
      static java.lang.String getHttpProtocol​(boolean ssl)  
      static java.net.URLConnection verify​(java.net.URLConnection connection, java.lang.String user, java.lang.String pass)  
      • Methods inherited from class java.lang.Object

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

      • URLConnectionFactory

        public URLConnectionFactory()
    • Method Detail

      • create

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

        public static java.net.URLConnection verify​(java.net.URLConnection connection,
                                                    java.lang.String user,
                                                    java.lang.String pass)
                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • create

        public static java.net.URLConnection create​(java.lang.String host,
                                                    int port,
                                                    java.lang.String file,
                                                    boolean secured)
                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • getHttpProtocol

        public static java.lang.String getHttpProtocol​(boolean ssl)