Interface Socks4Proxy


public interface Socks4Proxy
Socks4Proxy returns information about the SOCKS V4 proxy that has been configured.
Since:
9.12.0
  • Method Summary

    Modifier and Type Method Description
    String getAddress()
    Returns the address of the proxy (without the port).
    int getPort()
    Returns the port number of the proxy.
    boolean isActive()
    Returns true if this proxy setting is chosen to be used.
  • Method Details

    • isActive

      boolean isActive()
      Returns true if this proxy setting is chosen to be used.
      Returns:
      true if active, false otherwise
      Since:
      9.12.0
    • getAddress

      String getAddress()
      Returns the address of the proxy (without the port). If this proxy is not set, an empty String will be returned.
      Returns:
      the address of the proxy
      Since:
      9.12.0
    • getPort

      int getPort()
      Returns the port number of the proxy. If this proxy is not set, 0 is returned.
      Returns:
      the port number of the proxy
      Since:
      9.12.0