Class SftpUrlHandler


  • public class SftpUrlHandler
    extends java.net.URLStreamHandler
    The class for handling SFTP URL Connection.
    Author:
    Alejandro Galue
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String PROTOCOL
      The Constant PROTOCOL.
    • Constructor Summary

      Constructors 
      Constructor Description
      SftpUrlHandler()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected int getDefaultPort()  
      protected java.net.URLConnection openConnection​(java.net.URL url)  
      • Methods inherited from class java.net.URLStreamHandler

        equals, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm
      • Methods inherited from class java.lang.Object

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

      • PROTOCOL

        public static final java.lang.String PROTOCOL
        The Constant PROTOCOL.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SftpUrlHandler

        public SftpUrlHandler()
    • Method Detail

      • getDefaultPort

        protected int getDefaultPort()
        Overrides:
        getDefaultPort in class java.net.URLStreamHandler
      • openConnection

        protected java.net.URLConnection openConnection​(java.net.URL url)
                                                 throws java.io.IOException
        Specified by:
        openConnection in class java.net.URLStreamHandler
        Throws:
        java.io.IOException