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 theProxyData
to connect to a proxy.private ProxyData
getData
(List<Proxy> proxies, Proxy.Type type)
-
Constructor Details
-
DefaultProxyDataFactory
public DefaultProxyDataFactory()
-
-
Method Details
-
get
Description copied from interface:ProxyDataFactory
Get theProxyData
to connect to a proxy. It should return a newProxyData
instance every time; if the returnedProxyData
contains a password, theSshdSession
will clear it once it is no longer needed.- Specified by:
get
in interfaceProxyDataFactory
- Parameters:
remoteAddress
- to connect to- Returns:
- the
ProxyData
ornull
if a direct connection is to be made
-
getData
-