Public Member Functions | |
SocketMessage (String deviceId) | |
SocketMessage (Socket client) throws IOException | |
void | createResponse (jade.util.leap.List apps) |
void | createResponse (ApplicationParam app) |
void | createResponse (ApplicationStateInfo[] app) |
void | createResponse (FileStruct fileS) |
void | createResponse (int messageType, String appId, String appName) |
String | getResponse () |
String | getDeviceId () |
int | getMessageType () |
ApplicationData | getApplicationData () |
String | getUserName () |
String | getApplicationId () |
String | getDevicePort () |
long | getFreeDeviceSpace () |
String | getInputFileName () |
String | getOutputFileName () |
void | setResponse (String response) |
String | getDeviceBatteryState () |
String | getDeviceMemoryState () |
Static Public Attributes | |
static final int | messageNotCorrect = 15 |
static final int | deviceNotRegistered = 14 |
static final int | deviceFreeSpaceNotEnought = 13 |
static final int | appNotFound = 12 |
static final int | fileNotFound = 11 |
static final int | operationWellPerformed = 10 |
static final int | existAppFinished = 9 |
static final int | appFinished = 8 |
static final int | acceptedExecutionRequest = 7 |
static final int | refusedExecutionRequest = 6 |
static final int | mlrmConnection = 30 |
static final int | activeConnection = 5 |
static final int | getApplicationsState = 4 |
static final int | getInputFile = 3 |
static final int | getOutputFile = 2 |
static final int | getApplicationParam = 1 |
static final int | remoteExecution = 0 |
Private Attributes | |
String | deviceId = null |
String | devicePort = null |
String | applicationId = null |
String | outputFileName = null |
String | inputFileName = null |
long | freeDeviceSpace |
String | deviceMemoryState |
String | deviceBatteryState |
int | messageType |
ApplicationData | app = null |
String | userName = null |
String | response = null |
|
Creates an empty instance to send responses
|
|
Creates an instance for reading the mobile device socket and for creating the response to mobile device
|
|
Creates a response for acceptedExecutionRequest, refusedExecutionRequest and appFinished message received by ASCTR
|
|
Creates the response for an getInputFile or an getOutputFile request
|
|
Creates the response for an getApplicationsState request
|
|
Creates the response for an getApplicationParam request
|
|
Creates the response for an existAppFinished request
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Gets the response to send to mobile device, it's necessary to call an createResponse call first
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|