|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.webrenderer.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 | |
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. |
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()
Returns the port number the proxy server communicates on. |
int |
getProtocol()
Returns 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()
|
Methods inherited from class java.lang.Object |
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
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.public ProxySetting(ProxySetting proxy)
proxy
- A ProxySetting to copyMethod Detail |
public int getPort()
public int getProtocol()
public java.lang.String getServer()
public void setPort(int port)
port
- Port numberpublic void setProtocol(int protocol)
protocol
- Protocols.public void setServer(java.lang.String server)
server
- Proxy server URL.public boolean equals(java.lang.Object obj)
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |