The description is build with the request User-Agent information. OpenMIS synchro client has a specific User-Agent encoding to get Client terminal informations. This class implements the User-Agent decoding. Use to get information on the client configuration. If the client isn't an OpenMIS client the user agent is not decoded and only the getClientPlateformString() method will return the user agent. Other method will return null. Use isOPenMISClient() to see if it's an OpenMIS client.
Definition at line 49 of file UserTerminal.java.
Public Member Functions | |
UserTerminal (String browserUserAgent) throws Exception | |
String | getClientPlateformType () |
return the general plateform type of the client PALMOS or PPC for example, | |
int | getSynchroType () |
return the synchro type. | |
boolean | isOPenMISClient () |
return true if the client is an OpenMIS client | |
String | getClientLanguage () |
String | getClientPlugInsVersion () |
return the client synchro plug-ins version | |
String | getUserAgent () |
return the User-Agent | |
String | getClientOS () |
boolean | equals (Object o) |
int | hashCode () |
String | getClientOSVersion () |
String | getClientPlugInName () |
Static Public Member Functions | |
static String | getUserAgentFromRequest (HttpServletRequest request) |
Static Public Attributes | |
static final int | SYNCHRO_TYPE_INDIRECT = 0 |
static final int | SYNCHRO_TYPE_DIRECT = 1 |
int org.openmobileis.common.context.UserTerminal.getSynchroType | ( | ) |
return the synchro type.
Client.SYNCHRO_TYPE_INDIRECT or Client.SYNCHRO_TYPE_DIRECT
Definition at line 125 of file UserTerminal.java.
Referenced by org.openmobileis.synchro.openmsp.server.OpenMSPService.run().