public class NetworkConnectionManager extends Object implements IConnection
Constructor and Description |
---|
NetworkConnectionManager(String url,
String subDomain)
NetworkConnectionManager constructor
|
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 Test connection to defined server and proxy
|
Enums.ConnectionError |
testConnectionSettings(String serverUrl,
Enums.ProxyType proxyType,
boolean useProxyAuthentication,
String proxyUrl,
String usr,
String pass,
int port)
testConnectionSettings Test connection to defined server and proxy
|
public String getLastFoundProxyAddress()
getLastFoundProxyAddress
in interface IConnection
public String getServerUrl()
getServerUrl
in interface IConnection
public void setServerUrl(String m_ServerUrl)
setServerUrl
in interface IConnection
m_ServerUrl
- public String getServerApiUrl()
getServerApiUrl
in interface IConnection
public String getServerHostName()
getServerHostName
in interface IConnection
public Enums.ProxyType getProxyType()
getProxyType
in interface IConnection
Enums.ProxyType
public boolean getUseCredentials()
getUseCredentials
in interface IConnection
public String getSubdomain()
getSubdomain
in interface IConnection
public boolean shouldAskUserForConnectionSettings()
shouldAskUserForConnectionSettings
in interface IConnection
public boolean shouldAskUserForProxyCredentials()
shouldAskUserForProxyCredentials
in interface IConnection
public Enums.ConnectionError testConnectionSettings()
testConnectionSettings
in interface IConnection
Enums.ConnectionError
public Enums.ConnectionError testConnectionSettings(Enums.ProxyType proxyType, boolean useProxyAuthentication, String proxyUrl, String usr, String pass, int port)
testConnectionSettings
in interface IConnection
proxyType
- useProxyAuthentication
- proxyUrl
- usr
- pass
- port
- Enums.ConnectionError
public Enums.ConnectionError testConnectionSettings(String serverUrl, Enums.ProxyType proxyType, boolean useProxyAuthentication, String proxyUrl, String usr, String pass, int port)
testConnectionSettings
in interface IConnection
serverUrl
- proxyType
- useProxyAuthentication
- proxyUrl
- usr
- pass
- port
- Enums.ConnectionError
public void saveProxySettings(Enums.ProxyType proxyType, String addr, String usr, String pass, int port, boolean useCredentials)
saveProxySettings
in interface IConnection
proxyType
- addr
- usr
- pass
- port
- useCredentials
- public void applyProxySettings(HttpURLConnection request)
applyProxySettings
in interface IConnection
request
- public boolean isConnectedToInternet()
isConnectedToInternet
in interface IConnection
public boolean isConnectedToInternet2()
isConnectedToInternet2
in interface IConnection
Copyright © 2019. All rights reserved.