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 aProxyDataFactorybased 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 ProxyDataget(InetSocketAddress remoteAddress)Get theProxyDatato connect to a proxy.
-
-
-
Method Detail
-
get
public ProxyData get(InetSocketAddress remoteAddress)
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
-
-