Class ConnectionSettings.SettingsURLConnectionHandler

    • Constructor Detail

      • SettingsURLConnectionHandler

        SettingsURLConnectionHandler​(ServerDTO serverDTO,
                                     Processor processor)
    • Method Detail

      • matches

        public boolean matches​(java.net.URL url)
        Description copied from interface: URLConnectionHandler
        Answer if this handler matches the given URL
        Specified by:
        matches in interface URLConnectionHandler
        Parameters:
        url - the url to match
        Returns:
        true if matched, false if not.
      • handle

        public void handle​(java.net.URLConnection connection)
                    throws java.lang.Exception
        Description copied from interface: URLConnectionHandler
        If the corresponding URL matches, modify the connection in the parameterized way.
        Specified by:
        handle in interface URLConnectionHandler
        Parameters:
        connection - The connection to modify
        Throws:
        java.lang.Exception
      • isHttps

        private boolean isHttps​(java.net.URLConnection connection)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object