Interface ProxyDataFactory

All Known Implementing Classes:
DefaultProxyDataFactory
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ProxyDataFactory
A factory for obtaining ProxyData to connect through some proxy.
  • Method Details

    • get

      ProxyData get(InetSocketAddress remoteAddress)
      Get the ProxyData to connect to a proxy. It should return a new ProxyData instance every time. The caller is responsible for clearing the password, if any, once it is no longer needed.
      Parameters:
      remoteAddress - to connect to
      Returns:
      the ProxyData or null if a direct connection is to be made