|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jniwrapper.win32.ie.proxy.ProxyConfiguration
public class ProxyConfiguration
Nested Class Summary | |
---|---|
static interface |
ProxyConfiguration.ConnectionType
Contains the connections type constants. |
static interface |
ProxyConfiguration.ServerType
Contains the server type constants. |
static interface |
ProxyConfiguration.Type
Contains the proxy configuration types. |
Constructor Summary | |
---|---|
ProxyConfiguration()
|
Method Summary | |
---|---|
java.lang.Object |
clone()
|
java.lang.String |
getAutoconfigProxyAddress()
Returns a string that represents a path to the script that contains proxy configuration. |
int |
getConnectionType()
Returns a connection type for the current proxy configuration. |
java.lang.String |
getPassword(int serverType)
Returns a string that represents password for a specified server type. |
java.lang.String |
getProxy(int serverType)
Returns proxy address for a specified server type. |
java.util.Set<java.lang.String> |
getProxyExceptions()
Returns a set of strings that represent proxy exceptions. |
java.lang.String |
getUserName(int serverType)
Returns a string that represents user name for a specified server type. |
boolean |
isIgnoreProxyForLocalAddresses()
Returns TRUE if local addresses are ignored by proxy server,
otherwise - FALSE . |
void |
setAutoconfigProxyAddress(java.lang.String address)
Sets a string that represents a path to the script that contains proxy configuration. |
void |
setConnectionType(int type)
Sets a specified connection type for the current proxy configuration. |
void |
setIgnoreProxyForLocalAddresses(boolean ignore)
Enables or disables ignoring proxy server for local addresses. |
void |
setPassword(java.lang.String password,
int serverType)
Sets password for a specified server type. |
void |
setProxy(java.lang.String proxyAddress,
int serverType)
Sets proxy address for a specified server type. |
void |
setProxyExceptions(java.util.Set<java.lang.String> exceptions)
Sets a set of strings that represent proxy exceptions. |
void |
setUserName(java.lang.String userName,
int serverType)
Sets a user name for a specified server type. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProxyConfiguration()
Method Detail |
---|
public void setProxy(java.lang.String proxyAddress, int serverType)
proxyAddress
- a string in the following format: "address:port".
For example: 127.0.0.1:8081serverType
- specified server type.
One of the following values:
ProxyConfiguration.ServerType.HTTP
,
ProxyConfiguration.ServerType.FTP
,
ProxyConfiguration.ServerType.SECURE
,
ProxyConfiguration.ServerType.SOCKS
or
ProxyConfiguration.ServerType.GOPHER
public java.lang.String getProxy(int serverType)
serverType
- specified server type.
One of the following values:
ProxyConfiguration.ServerType.HTTP
,
ProxyConfiguration.ServerType.FTP
,
ProxyConfiguration.ServerType.SECURE
,
ProxyConfiguration.ServerType.SOCKS
or
ProxyConfiguration.ServerType.GOPHER
public void setUserName(java.lang.String userName, int serverType)
userName
- a string that represents user name.serverType
- specified server type.public java.lang.String getUserName(int serverType)
serverType
- specified server type.
One of the following values:
ProxyConfiguration.ServerType.HTTP
,
ProxyConfiguration.ServerType.FTP
,
ProxyConfiguration.ServerType.SECURE
,
ProxyConfiguration.ServerType.SOCKS
or
ProxyConfiguration.ServerType.GOPHER
public void setPassword(java.lang.String password, int serverType)
password
- a string that represents password.serverType
- specified server type.public java.lang.String getPassword(int serverType)
serverType
- specified server type.
One of the following values:
ProxyConfiguration.ServerType.HTTP
,
ProxyConfiguration.ServerType.FTP
,
ProxyConfiguration.ServerType.SECURE
,
ProxyConfiguration.ServerType.SOCKS
or
ProxyConfiguration.ServerType.GOPHER
public void setProxyExceptions(java.util.Set<java.lang.String> exceptions)
exceptions
- a set of strings that represent proxy exceptions.public java.util.Set<java.lang.String> getProxyExceptions()
public void setIgnoreProxyForLocalAddresses(boolean ignore)
ignore
- TRUE
if local addresses are ignored by proxy server,
otherwise - FALSE
public boolean isIgnoreProxyForLocalAddresses()
TRUE
if local addresses are ignored by proxy server,
otherwise - FALSE
.
TRUE
if local addresses are ignored by proxy server,
otherwise - FALSE
.public void setAutoconfigProxyAddress(java.lang.String address)
address
- a string that represents a path to the script that contains proxy configuration.public java.lang.String getAutoconfigProxyAddress()
public void setConnectionType(int type)
type
- a specified connection type for the current proxy configuration.public int getConnectionType()
public java.lang.Object clone()
clone
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |