-
Method Summary
Modifier and Type |
Method |
Description |
void |
applyProxySettings(HttpURLConnection request) |
applyProxySettings
|
String |
getLastFoundProxyAddress() |
getLastFoundProxyAddress
|
Enums.ProxyType |
getProxyType() |
getProxyType
|
String |
getServerApiUrl() |
getServerApiUrl
|
String |
getServerHostName() |
getServerHostName
|
String |
getServerUrl() |
getServerUrl
|
String |
getSubdomain() |
getSubdomain
|
boolean |
getUseCredentials() |
getUseCredentials
|
boolean |
isConnectedToInternet() |
isConnectedToInternet
|
boolean |
isConnectedToInternet2() |
isConnectedToInternet2
|
void |
saveProxySettings(Enums.ProxyType proxyType,
String addr,
String usr,
String pass,
int port,
boolean useCredentials) |
saveProxySettings
|
void |
setServerUrl(String m_ServerUrl) |
setServerUrl
|
boolean |
shouldAskUserForConnectionSettings() |
shouldAskUserForConnectionSettings
|
boolean |
shouldAskUserForProxyCredentials() |
shouldAskUserForProxyCredentials
|
Enums.ConnectionError |
testConnectionSettings() |
testConnectionSettings
|
Enums.ConnectionError |
testConnectionSettings(Enums.ProxyType proxyType,
boolean useProxyAuthentication,
String proxyUrl,
String usr,
String pass,
int port) |
testConnectionSettings
|
Enums.ConnectionError |
testConnectionSettings(String serverUrl,
Enums.ProxyType proxyType,
boolean useProxyAuthentication,
String proxyUrl,
String usr,
String pass,
int port) |
testConnectionSettings
|
-
Method Details
-
String getLastFoundProxyAddress()
getLastFoundProxyAddress
- Returns:
- last proxy address
-
getServerUrl
- Returns:
- server URL
-
void setServerUrl(
String m_ServerUrl)
setServerUrl
- Parameters:
m_ServerUrl
-
-
getServerHostName
- Returns:
- server host name
-
getServerApiUrl
- Returns:
- server Api URL
-
getProxyType
- Returns:
- proxy type
-
boolean getUseCredentials()
getUseCredentials
- Returns:
- True if use credential; Otherwise false
-
getSubdomain
- Returns:
- Sub domain
-
saveProxySettings
- Parameters:
proxyType
- Proxy type
addr
- Address
usr
- User
pass
- Password
port
- Port
useCredentials
- True if use credential; Otherwise false
-
boolean shouldAskUserForConnectionSettings()
shouldAskUserForConnectionSettings
- Returns:
- True if ask user for connection settings; Otherwise false
-
boolean shouldAskUserForProxyCredentials()
shouldAskUserForProxyCredentials
- Returns:
- True if ask user for proxy credentials; Otherwise false
-
applyProxySettings
- Parameters:
request
- Request
-
testConnectionSettings
- Returns:
- Returns ConnectionError
-
testConnectionSettings
- Parameters:
serverUrl
- Server URL
proxyType
- Proxy type
useProxyAuthentication
- Whether use proxy authentication
proxyUrl
- Proxy URL
usr
- User
pass
- Password
port
- Port
- Returns:
- Returns ConnectionError
-
testConnectionSettings
- Parameters:
proxyType
- Proxy type
useProxyAuthentication
- Whether use proxy authentication
proxyUrl
- Proxy URL
usr
- User
pass
- Password
port
- Port
- Returns:
- Returns ConnectionError
-
boolean isConnectedToInternet()
isConnectedToInternet
- Returns:
- True if connected to internet; Otherwise false
-
boolean isConnectedToInternet2()
isConnectedToInternet2
- Returns:
- True if connected to internet; Otherwise false