Package org.eclipse.jgit.transport.sshd
Class DefaultProxyDataFactory
- java.lang.Object
-
- org.eclipse.jgit.transport.sshd.DefaultProxyDataFactory
-
- All Implemented Interfaces:
ProxyDataFactory
public class DefaultProxyDataFactory extends Object implements ProxyDataFactory
A default implementation of aProxyDataFactory
based on the standardProxySelector
.- Since:
- 5.2
-
-
Constructor Summary
Constructors Constructor Description DefaultProxyDataFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProxyData
get(InetSocketAddress remoteAddress)
Get theProxyData
to connect to a proxy.
-
-
-
Method Detail
-
get
public ProxyData get(InetSocketAddress remoteAddress)
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
-
-