public class CotService extends java.lang.Object implements android.content.SharedPreferences.OnSharedPreferenceChangeListener, ClearContentRegistry.ClearContentListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SERVER_ONLY_CONTACT
Use all F's (bogus UID) so server will not route out to other users, rather just
store in server DB
|
static java.lang.String |
TAG |
Constructor and Description |
---|
CotService(android.content.Context context)
The cot service responsible for persisting and restoring the CoT ports used by the system.
|
Modifier and Type | Method and Description |
---|---|
void |
addInput(java.lang.String connectString,
android.os.Bundle input) |
void |
addOutput(java.lang.String connectString,
android.os.Bundle output) |
void |
addStreaming(java.lang.String connectString,
android.os.Bundle output)
Add a connection to the system.
|
void |
addStreaming(TAKServer server) |
static AtakAuthenticationDatabaseIFace |
getAuthenticationDatabase() |
static AtakCertificateDatabaseIFace |
getCertificateDatabase() |
static java.io.File |
getConnectionConfig(android.content.Context context,
java.lang.String type,
java.lang.String connectString) |
static java.io.File |
getConnectionsDir(android.content.Context context,
java.lang.String type) |
static java.util.List<java.util.Properties> |
loadCotStreamProperties(android.content.Context context) |
void |
onClearContent(boolean clearmaps)
A call to clear content (ZEROIZE) has been made with the option to clear any larger map
data.
|
void |
onDestroy() |
void |
onSharedPreferenceChanged(android.content.SharedPreferences prefs,
java.lang.String key) |
void |
reconnectStreams() |
void |
refreshAllStreams() |
void |
removeStreaming(java.lang.String connectString,
boolean soft)
Allows for removal of a streaming connection based on it's connect string or
wild card "**" to remove all streams.
|
static void |
setAuthenticationDatabase(AtakAuthenticationDatabaseIFace authenticationDatabase) |
static void |
setCertificateDatabase(AtakCertificateDatabaseIFace certificateDatabase) |
void |
setCredentialsForStream(java.lang.String connectString,
java.lang.String user,
java.lang.String pass) |
void |
setUseAuthForStream(java.lang.String connectString,
boolean useAuth) |
public static final java.lang.String TAG
public static final java.lang.String SERVER_ONLY_CONTACT
public CotService(android.content.Context context)
context
- the context.public void onSharedPreferenceChanged(android.content.SharedPreferences prefs, java.lang.String key)
onSharedPreferenceChanged
in interface android.content.SharedPreferences.OnSharedPreferenceChangeListener
public void addInput(java.lang.String connectString, android.os.Bundle input)
public void addOutput(java.lang.String connectString, android.os.Bundle output)
public void reconnectStreams()
public void addStreaming(java.lang.String connectString, android.os.Bundle output)
connectString
- the connect string ip:port:protocoloutput
- the results of the addition of the stream as a bundle.public void addStreaming(TAKServer server)
public void removeStreaming(java.lang.String connectString, boolean soft)
public void setCredentialsForStream(java.lang.String connectString, java.lang.String user, java.lang.String pass)
public void setUseAuthForStream(java.lang.String connectString, boolean useAuth)
public static java.util.List<java.util.Properties> loadCotStreamProperties(android.content.Context context)
public static java.io.File getConnectionsDir(android.content.Context context, java.lang.String type)
public static java.io.File getConnectionConfig(android.content.Context context, java.lang.String type, java.lang.String connectString)
public void onDestroy()
public static void setCertificateDatabase(AtakCertificateDatabaseIFace certificateDatabase)
public static AtakCertificateDatabaseIFace getCertificateDatabase()
public static void setAuthenticationDatabase(AtakAuthenticationDatabaseIFace authenticationDatabase)
public void refreshAllStreams()
public static AtakAuthenticationDatabaseIFace getAuthenticationDatabase()
public void onClearContent(boolean clearmaps)
ClearContentRegistry.ClearContentListener
onClearContent
in interface ClearContentRegistry.ClearContentListener
clearmaps
- True to clear map source and cache data