|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.webrenderer.se.ProxySetting
public class ProxySetting
This holds the proxy settings for the given protocols. Supported protocols are given by the PROTOCOL_* flags. Users can use this class to pass proxy settings to Webrenderer, but also for Webrenderer to supply information back to the user.
| Field Summary | |
|---|---|
protected int |
port
The port which the proxy server communicates on. |
protected int |
protocol
Holds the protocol(s) defined by the PROTOCOL_* flags. |
static int |
PROTOCOL_ALL
Indicates the settings will affect all protocols. |
static int |
PROTOCOL_FTP
Indicates the settings will be used for the file transfer protcol. |
static int |
PROTOCOL_GOPHER
Indicates the settings will be used for the gopher protcol. |
static int |
PROTOCOL_HTTP
Indicates the settings will be used for the hypertext transfer protcol. |
static int |
PROTOCOL_HTTPS
Indicates the settings will be used for the secure hypertext transfer protcol. |
static int |
PROTOCOL_SOCKS
Indicates the settings will be used for the socks server protcol. |
protected java.lang.String |
server
The URL of the proxy server. |
| Constructor Summary | |
|---|---|
ProxySetting()
Constructor for ProxySetting. |
|
ProxySetting(int protocol,
java.lang.String server,
int port)
Constructor for ProxySetting with initial settings. |
|
ProxySetting(ProxySetting proxy)
Copy Constuctor for ProxySetting |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
int |
getPort()
Gets the port number upon which the proxy server communicates. |
int |
getProtocol()
Gets the protocols defined by the PROTOCOL_* flags. |
java.lang.String |
getServer()
Returns the URL of the proxy server. |
void |
setPort(int port)
Sets the port number the proxy server communicates on. |
void |
setProtocol(int protocol)
Sets the protocols defined by the PROTOCOL_* flags. |
void |
setServer(java.lang.String server)
Sets the URL of the proxy server. |
java.lang.String |
toString()
Gets the proxy setting as a string. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int PROTOCOL_FTP
public static final int PROTOCOL_HTTP
public static final int PROTOCOL_HTTPS
public static final int PROTOCOL_SOCKS
public static final int PROTOCOL_GOPHER
public static final int PROTOCOL_ALL
protected int protocol
protected java.lang.String server
protected int port
| Constructor Detail |
|---|
public ProxySetting()
public ProxySetting(int protocol,
java.lang.String server,
int port)
protocol - Protocol(s), defined by PROTOCOL_* flags.server - URL of the proxy server.port - Port the proxy server uses.PROTOCOL_ALL,
PROTOCOL_FTP,
PROTOCOL_GOPHER,
PROTOCOL_HTTP,
PROTOCOL_HTTPS,
PROTOCOL_SOCKSpublic ProxySetting(ProxySetting proxy)
proxy - A ProxySetting to copy| Method Detail |
|---|
public int getPort()
public int getProtocol()
PROTOCOL_ALL,
PROTOCOL_FTP,
PROTOCOL_GOPHER,
PROTOCOL_HTTP,
PROTOCOL_HTTPS,
PROTOCOL_SOCKSpublic java.lang.String getServer()
public void setPort(int port)
port - Port numberpublic void setProtocol(int protocol)
protocol - Protocols.PROTOCOL_ALL,
PROTOCOL_FTP,
PROTOCOL_GOPHER,
PROTOCOL_HTTP,
PROTOCOL_HTTPS,
PROTOCOL_SOCKSpublic void setServer(java.lang.String server)
server - Proxy server URL.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||