Package org.opennms.protocols.sftp
Class SftpUrlHandler
- java.lang.Object
-
- java.net.URLStreamHandler
-
- org.opennms.protocols.sftp.SftpUrlHandler
-
public class SftpUrlHandler extends URLStreamHandler
The class for handling SFTP URL Connection.- Author:
- Alejandro Galue
-
-
Constructor Summary
Constructors Constructor Description SftpUrlHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
getDefaultPort()
protected URLConnection
openConnection(URL url)
-
Methods inherited from class java.net.URLStreamHandler
equals, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm
-
-
-
-
Field Detail
-
PROTOCOL
public static final String PROTOCOL
The Constant PROTOCOL.- See Also:
- Constant Field Values
-
-
Method Detail
-
getDefaultPort
protected int getDefaultPort()
- Overrides:
getDefaultPort
in classURLStreamHandler
-
openConnection
protected URLConnection openConnection(URL url) throws IOException
- Specified by:
openConnection
in classURLStreamHandler
- Throws:
IOException
-
-