Package com.pnfsoftware.jeb.util.net
Class NetProxyInfo
java.lang.Object
com.pnfsoftware.jeb.util.net.NetProxyInfo
Network proxy information.
Immutable objects; safe comparison via hashCode/equals.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNetProxyInfo
(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) -
Method Summary
Modifier and TypeMethodDescriptionboolean
okhttp3.Authenticator
int
getPort()
getProxy()
static String
getProxyTypeFromIndex
(int index) int
getType()
int
getUser()
boolean
int
hashCode()
boolean
isProxy()
boolean
isWhitelisted
(String url) static NetProxyInfo
toString()
-
Field Details
-
INDEX_DIRECT
public static final int INDEX_DIRECT- See Also:
-
INDEX_HTTP
public static final int INDEX_HTTP- See Also:
-
INDEX_SOCKS
public static final int INDEX_SOCKS- See Also:
-
TYPE_DIRECT
- See Also:
-
TYPE_HTTP
- See Also:
-
TYPE_SOCKS
- See Also:
-
-
Constructor Details
-
NetProxyInfo
-
NetProxyInfo
-
NetProxyInfo
-
-
Method Details
-
getProxyTypes
-
getProxyTypesWithDescriptions
-
getProxyTypeFromIndex
-
parse
-
isProxy
public boolean isProxy() -
getProxy
-
getType
-
getTypeIndex
public int getTypeIndex() -
getHostname
-
getPort
public int getPort() -
getUser
-
getPassword
-
hasCredentials
public boolean hasCredentials() -
getAuthenticator
public okhttp3.Authenticator getAuthenticator() -
getWhitelist
-
isWhitelisted
-
getRecordedHostname
-
getRecordedPort
public int getRecordedPort() -
getRecordedUser
-
getRecordedPassword
-
getRecordedWhitelist
-
hashCode
public int hashCode() -
equals
-
toString
-