public class

NetProxyInfo

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.util.net.NetProxyInfo

Class Overview

Network proxy information.

Immutable objects; safe comparison via hashCode/equals.

Summary

Constants
int INDEX_DIRECT
int INDEX_HTTP
int INDEX_SOCKS
String TYPE_DIRECT
String TYPE_HTTP
String TYPE_SOCKS
Public Constructors
NetProxyInfo(String typestr, String hostname, int port)
NetProxyInfo(String typestr, String hostname, int port, String user, String password)
NetProxyInfo(String typestr, String hostname, int port, String user, String password, String rawWhitelist)
Public Methods
boolean equals(Object obj)
Authenticator getAuthenticator()
String getHostname()
String getPassword()
int getPort()
Proxy getProxy()
static String getProxyTypeFromIndex(int index)
static List<String> getProxyTypes()
static List<String> getProxyTypesWithDescriptions()
String getRecordedHostname()
String getRecordedPassword()
int getRecordedPort()
String getRecordedUser()
String getRecordedWhitelist()
String getType()
int getTypeIndex()
String getUser()
String getWhitelist()
boolean hasCredentials()
int hashCode()
boolean isProxy()
boolean isWhitelisted(String url)
static NetProxyInfo parse(String s)
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int INDEX_DIRECT

Constant Value: 0 (0x00000000)

public static final int INDEX_HTTP

Constant Value: 1 (0x00000001)

public static final int INDEX_SOCKS

Constant Value: 2 (0x00000002)

public static final String TYPE_DIRECT

Constant Value: "direct"

public static final String TYPE_HTTP

Constant Value: "http"

public static final String TYPE_SOCKS

Constant Value: "socks"

Public Constructors

public NetProxyInfo (String typestr, String hostname, int port)

public NetProxyInfo (String typestr, String hostname, int port, String user, String password)

public NetProxyInfo (String typestr, String hostname, int port, String user, String password, String rawWhitelist)

Public Methods

public boolean equals (Object obj)

public Authenticator getAuthenticator ()

public String getHostname ()

public String getPassword ()

public int getPort ()

public Proxy getProxy ()

public static String getProxyTypeFromIndex (int index)

public static List<String> getProxyTypes ()

public static List<String> getProxyTypesWithDescriptions ()

public String getRecordedHostname ()

public String getRecordedPassword ()

public int getRecordedPort ()

public String getRecordedUser ()

public String getRecordedWhitelist ()

public String getType ()

public int getTypeIndex ()

public String getUser ()

public String getWhitelist ()

public boolean hasCredentials ()

public int hashCode ()

public boolean isProxy ()

public boolean isWhitelisted (String url)

public static NetProxyInfo parse (String s)

public String toString ()