|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jurvis.net.JvProxyInfo
public class JvProxyInfo
Class containing information about a proxy host.
JvProxyConfig.getProxyForURI(java.lang.String)| Field Summary | |
|---|---|
static int |
DIRECT
Enumerated value indicating the connection can be made directly, without any proxies. |
protected String |
host
The name of the proxy host or null for the DIRECT method. |
protected int |
method
The method used to connect to the URL. |
protected static String[] |
methodStrings
String representations of the three enumerated methods. |
protected int |
port
The port on the proxy host or 0 for the DIRECT method. |
static int |
PROXY
Enumerated value indicating the specified proxy should be used. |
static int |
SOCKS
Enumerated value indicating the specified SOCKS server should be used. |
| Constructor Summary | |
|---|---|
JvProxyInfo()
Construct a new JvProxyInfo. |
|
JvProxyInfo(int method,
String host,
int port)
Construct a new JvProxyInfo. |
|
JvProxyInfo(String method,
String host)
Construct a new JvProxyInfo. |
|
| Method Summary | |
|---|---|
String |
getHost()
The name of the proxy host or null for the DIRECT method. |
int |
getMethod()
Return the method used to connect to the URL. |
int |
getPort()
Return the port on the proxy host or 0 for the DIRECT method. |
void |
setHost(String host)
Set the name of the proxy host. |
void |
setMethod(int method)
Set the method used to connect to the URL. |
void |
setPort(int port)
Set the port on the proxy host or 0 for the DIRECT method. |
String |
toString()
Returns a string representation of the object suitable for debugging. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int DIRECT
public static final int PROXY
public static final int SOCKS
protected static final String[] methodStrings
protected int method
DIRECT,
PROXY, or SOCKS.
protected String host
DIRECT method.
protected int port
DIRECT method.
| Constructor Detail |
|---|
public JvProxyInfo()
JvProxyInfo.
public JvProxyInfo(int method,
String host,
int port)
JvProxyInfo.
method - the method used to connect to the URLhost - the name of the proxy hostport - the port on the proxy host
public JvProxyInfo(String method,
String host)
JvProxyInfo.
method - the method used to connect to the URLhost - the name and port of the proxy host| Method Detail |
|---|
public String getHost()
DIRECT method.
DIRECT methodpublic void setHost(String host)
host - the name of the proxy hostpublic int getMethod()
DIRECT,
PROXY, or SOCKS.
public void setMethod(int method)
method - the method used to connect to the URLpublic int getPort()
DIRECT method.
DIRECT methodpublic void setPort(int port)
DIRECT method.
port - the port on the proxy hostpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||