Top Description Constructors Methods
org.eclipse.jgit.transport.sshd

public Class DefaultProxyDataFactory

extends Object
implements ProxyDataFactory
Class Inheritance
All Implemented Interfaces
org.eclipse.jgit.transport.sshd.ProxyDataFactory
Imports
java.net.InetSocketAddress, .Proxy, .ProxySelector, .SocketAddress, .URI, .URISyntaxException, java.util.List

A default implementation of a ProxyDataFactory based on the standard java.net.ProxySelector.
Since
5.2

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ProxyData
get(InetSocketAddress
to connect to
remoteAddress
)

Implements org.eclipse.jgit.transport.sshd.ProxyDataFactory.get.

Get the ProxyData to connect to a proxy.

private ProxyData
getData(List<Proxy> proxies, Proxy.Type type)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DefaultProxyDataFactoryback to summary
public DefaultProxyDataFactory()

Method Detail

getback to summary
public ProxyData get(InetSocketAddress remoteAddress)

Implements org.eclipse.jgit.transport.sshd.ProxyDataFactory.get.

Doc from org.eclipse.jgit.transport.sshd.ProxyDataFactory.get.

Get the ProxyData to connect to a proxy. It should return a new ProxyData instance every time; if the returned ProxyData contains a password, the SshdSession will clear it once it is no longer needed.

Parameters
remoteAddress:InetSocketAddress

to connect to

Returns:ProxyData

the ProxyData or null if a direct connection is to be made

Annotations
@Override
getDataback to summary
private ProxyData getData(List<Proxy> proxies, Proxy.Type type)