All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nitorcreations.willow.protocols.sftp.Handler Maven / Gradle / Ivy

There is a newer version: 2.0.2
Show newest version
package com.nitorcreations.willow.protocols.sftp;

import java.io.IOException;
import java.net.Proxy;
import java.net.URL;
import java.net.URLConnection;
import java.net.URLStreamHandler;

public class Handler extends URLStreamHandler {
  @Override
  protected URLConnection openConnection(URL u) throws IOException {
    return new SftpURLConnection(u);
  }
  @Override
  protected URLConnection openConnection(URL u, Proxy p) throws IOException {
    return new SftpURLConnection(u, p);
  };
  @Override
  public int getDefaultPort() {
    return 22;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy