Package com.crawljax.core.configuration
Class ProxyConfiguration
- java.lang.Object
-
- com.crawljax.core.configuration.ProxyConfiguration
-
@Immutable public class ProxyConfiguration extends Object
Class for passing proxy settings to Crawljax' browser builder. It is returned by the ProxyServerPlugin interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProxyConfiguration.ProxyTypeType of proxy this is.
-
Field Summary
Fields Modifier and Type Field Description private Stringhostnameprivate intportprivate ProxyConfiguration.ProxyTypetype
-
Constructor Summary
Constructors Modifier Constructor Description privateProxyConfiguration(int port, String hostname, ProxyConfiguration.ProxyType type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProxyConfigurationautomatic()booleanequals(Object object)StringgetHostname()intgetPort()ProxyConfiguration.ProxyTypegetType()inthashCode()static ProxyConfigurationmanualProxyOn(String host, int port)static ProxyConfigurationnoProxy()static ProxyConfigurationsystemDefault()StringtoString()
-
-
-
Field Detail
-
port
private final int port
-
hostname
private final String hostname
-
type
private final ProxyConfiguration.ProxyType type
-
-
Constructor Detail
-
ProxyConfiguration
private ProxyConfiguration(int port, String hostname, ProxyConfiguration.ProxyType type)
-
-
Method Detail
-
noProxy
public static ProxyConfiguration noProxy()
- See Also:
ProxyConfiguration.ProxyType.NOTHING
-
automatic
public static ProxyConfiguration automatic()
- See Also:
ProxyConfiguration.ProxyType.AUTOMATIC
-
systemDefault
public static ProxyConfiguration systemDefault()
-
manualProxyOn
public static ProxyConfiguration manualProxyOn(String host, int port)
- See Also:
ProxyConfiguration.ProxyType.MANUAL
-
getPort
public int getPort()
- Returns:
- The port.
-
getHostname
public String getHostname()
- Returns:
- The hostname.
-
getType
public ProxyConfiguration.ProxyType getType()
- Returns:
- The type.
-
-