public interface IConnection
Modifier and Type | Method and 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
|
String getLastFoundProxyAddress()
String getServerUrl()
void setServerUrl(String m_ServerUrl)
m_ServerUrl
- String getServerHostName()
String getServerApiUrl()
Enums.ProxyType getProxyType()
boolean getUseCredentials()
String getSubdomain()
void saveProxySettings(Enums.ProxyType proxyType, String addr, String usr, String pass, int port, boolean useCredentials)
proxyType
- Proxy typeaddr
- Addressusr
- Userpass
- Passwordport
- PortuseCredentials
- True if use credential; Otherwise falseboolean shouldAskUserForConnectionSettings()
boolean shouldAskUserForProxyCredentials()
void applyProxySettings(HttpURLConnection request)
request
- RequestEnums.ConnectionError testConnectionSettings()
Enums.ConnectionError testConnectionSettings(String serverUrl, Enums.ProxyType proxyType, boolean useProxyAuthentication, String proxyUrl, String usr, String pass, int port)
serverUrl
- Server URLproxyType
- Proxy typeuseProxyAuthentication
- Whether use proxy authenticationproxyUrl
- Proxy URLusr
- Userpass
- Passwordport
- PortEnums.ConnectionError testConnectionSettings(Enums.ProxyType proxyType, boolean useProxyAuthentication, String proxyUrl, String usr, String pass, int port)
proxyType
- Proxy typeuseProxyAuthentication
- Whether use proxy authenticationproxyUrl
- Proxy URLusr
- Userpass
- Passwordport
- Portboolean isConnectedToInternet()
boolean isConnectedToInternet2()
Copyright © 2019. All rights reserved.