Java 类com.jcraft.jsch.Proxy 实例源码

项目:dohko    文件:SshConnection.java   
private SshConnection(HostAndPort hostAndPort, LoginCredentials loginCredentials, Optional<Proxy> proxy, int connectTimeout, int sessionTimeout,
        Optional<Connector> agentConnector)
{
    this.hostAndPort_ = checkNotNull(hostAndPort);
    this.loginCredentials_ = checkNotNull(loginCredentials, " login for %s", hostAndPort);
    this.proxy_ = checkNotNull(proxy, " proxy for %s", hostAndPort);
    this.connectTimeout_ = checkNotNull(connectTimeout);
    this.sessionTimeout_ = checkNotNull(sessionTimeout);
    this.agentConnector_ = checkNotNull(agentConnector, "agent connector for %s", hostAndPort);
}
项目:Camel    文件:SftpOperations.java   
public SftpOperations(Proxy proxy) {
    this.proxy = proxy;
}
项目:Camel    文件:SftpEndpoint.java   
public Proxy getProxy() {
    return proxy;
}
项目:dohko    文件:SshConnection.java   
/**
 * @return the proxy
 */
public Optional<Proxy> getProxy()
{
    return proxy_;
}
项目:Camel    文件:SftpEndpoint.java   
/**
 * To use a custom configured com.jcraft.jsch.Proxy.
 * This proxy is used to consume/send messages from the target SFTP host.
 */
public void setProxy(Proxy proxy) {
    this.proxy = proxy;
}