Package org.eclipse.jgit.transport.sshd
Class DefaultProxyDataFactory
java.lang.Object
org.eclipse.jgit.transport.sshd.DefaultProxyDataFactory
- All Implemented Interfaces:
ProxyDataFactory
A default implementation of a
ProxyDataFactory based on the standard
ProxySelector.- Since:
- 5.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget(InetSocketAddress remoteAddress) Get theProxyDatato connect to a proxy.private ProxyDatagetData(List<Proxy> proxies, Proxy.Type type)
-
Constructor Details
-
DefaultProxyDataFactory
public DefaultProxyDataFactory()
-
-
Method Details
-
get
Description copied from interface:ProxyDataFactoryGet theProxyDatato connect to a proxy. It should return a newProxyDatainstance every time; if the returnedProxyDatacontains a password, theSshdSessionwill clear it once it is no longer needed.- Specified by:
getin interfaceProxyDataFactory- Parameters:
remoteAddress- to connect to- Returns:
- the
ProxyDataornullif a direct connection is to be made
-
getData
-