|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmymobilesite.controller.Configurations
public class Configurations
The Configurations class must manage the things the user should be able to configure, which is the username. This should be stored until the next time the application is used and the language which can be changed. This class also holds static variables that are used by a variety of classes and that are collected so that it is simpler to change their values later.
Field Summary | |
---|---|
static java.lang.String |
FAULT_SCHEMA_URI
|
static java.lang.String |
IDP_URL
|
private int |
index
|
static java.lang.String |
LANGUAGE
These variables gives the application's default values for language and username. |
static int |
LANGUAGE_INDEX
The index in the RecordStore where language and username can be found. |
static int |
NAME_LENGTH_CONSTRAINT
|
static java.lang.String |
RECORDSTORE_NAME
|
static java.lang.String |
REQUEST_SCHEMA_URI
|
static java.lang.String |
RESPONSE_SCHEMA_URI
|
static java.lang.String |
SERVICE_TYPE_URI
|
static long |
TIMESTAMP_DEVIATION_MILLIS
|
static java.lang.String |
USERNAME
|
static int |
USERNAME_INDEX
|
private java.lang.String |
value
|
Constructor Summary | |
---|---|
Configurations()
|
Method Summary | |
---|---|
void |
read()
This method tries to read the content of the applications's recordstore. |
void |
run()
This method is used when writing a value to the RecordStore. |
void |
write(int index,
java.lang.String value)
This method updates a record (recognised by the specified index) in the application's recordstore and updates the value in this class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String IDP_URL
public static final java.lang.String RECORDSTORE_NAME
public static final java.lang.String SERVICE_TYPE_URI
public static final java.lang.String REQUEST_SCHEMA_URI
public static final java.lang.String RESPONSE_SCHEMA_URI
public static final java.lang.String FAULT_SCHEMA_URI
public static final int NAME_LENGTH_CONSTRAINT
public static final long TIMESTAMP_DEVIATION_MILLIS
public static java.lang.String LANGUAGE
public static java.lang.String USERNAME
public static final int LANGUAGE_INDEX
public static final int USERNAME_INDEX
private int index
private java.lang.String value
Constructor Detail |
---|
public Configurations()
Method Detail |
---|
public void read()
public void write(int index, java.lang.String value)
index
- int The index in the recordstore that should be updated.value
- String The new value to put in the recordstore.public void run()
run
in interface java.lang.Runnable
Runnable.run()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |