Class ProxyInfo

java.lang.Object
jodd.http.ProxyInfo

public class ProxyInfo extends Object
Proxy information.
  • Field Details

    • proxyAddress

      private final String proxyAddress
    • proxyPort

      private final int proxyPort
    • proxyUsername

      private final String proxyUsername
    • proxyPassword

      private final String proxyPassword
    • proxyType

      private final ProxyInfo.ProxyType proxyType
  • Constructor Details

  • Method Details

    • directProxy

      public static ProxyInfo directProxy()
      Creates directProxy.
    • socks4Proxy

      public static ProxyInfo socks4Proxy(String proxyAddress, int proxyPort, String proxyUser)
      Creates SOCKS4 proxy.
    • socks5Proxy

      public static ProxyInfo socks5Proxy(String proxyAddress, int proxyPort, String proxyUser, String proxyPassword)
      Creates SOCKS5 proxy.
    • httpProxy

      public static ProxyInfo httpProxy(String proxyAddress, int proxyPort, String proxyUser, String proxyPassword)
      Creates HTTP proxy.
    • getProxyType

      public ProxyInfo.ProxyType getProxyType()
      Returns proxy type.
    • getProxyAddress

      public String getProxyAddress()
      Returns proxy address.
    • getProxyPort

      public int getProxyPort()
      Returns proxy port.
    • getProxyUsername

      public String getProxyUsername()
      Returns proxy user name or null if no authentication required.
    • getProxyPassword

      public String getProxyPassword()
      Returns proxy password or null.