org.openmobileis.common.context
Class UserTerminal

java.lang.Object
  extended byorg.openmobileis.common.context.UserTerminal

public class UserTerminal
extends java.lang.Object

Title: OpenMobileIS project source
Description: Synchro client plugin description. 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.

Since:
JDK 1.1
Version:
1.0.
Author:
Philippe Delrieu

Field Summary
static int SYNCHRO_TYPE_DIRECT
           
static int SYNCHRO_TYPE_INDIRECT
           
 
Constructor Summary
UserTerminal(java.lang.String browserUserAgent)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getClientLanguage()
           
 java.lang.String getClientOS()
           
 java.lang.String getClientOSVersion()
           
 java.lang.String getClientPlateformType()
          return the general plateform type of the client PALMOS or PPC for example,
 java.lang.String getClientPlugInName()
           
 java.lang.String getClientPlugInsVersion()
          return the client synchro plug-ins version
 int getSynchroType()
          return the synchro type.
 java.lang.String getUserAgent()
          return the User-Agent
static java.lang.String getUserAgentFromRequest(HttpServletRequest request)
           
 int hashCode()
           
 boolean isOPenMISClient()
          return true if the client is an OpenMIS client
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYNCHRO_TYPE_INDIRECT

public static final int SYNCHRO_TYPE_INDIRECT
See Also:
Constant Field Values

SYNCHRO_TYPE_DIRECT

public static final int SYNCHRO_TYPE_DIRECT
See Also:
Constant Field Values
Constructor Detail

UserTerminal

public UserTerminal(java.lang.String browserUserAgent)
             throws java.lang.Exception
Method Detail

getUserAgentFromRequest

public static java.lang.String getUserAgentFromRequest(HttpServletRequest request)

getClientPlateformType

public java.lang.String getClientPlateformType()
return the general plateform type of the client PALMOS or PPC for example,


getSynchroType

public int getSynchroType()
return the synchro type. Client.SYNCHRO_TYPE_INDIRECT or Client.SYNCHRO_TYPE_DIRECT


isOPenMISClient

public boolean isOPenMISClient()
return true if the client is an OpenMIS client


getClientLanguage

public java.lang.String getClientLanguage()

getClientPlugInsVersion

public java.lang.String getClientPlugInsVersion()
return the client synchro plug-ins version


getUserAgent

public java.lang.String getUserAgent()
return the User-Agent


getClientOS

public java.lang.String getClientOS()

equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()

getClientOSVersion

public java.lang.String getClientOSVersion()

getClientPlugInName

public java.lang.String getClientPlugInName()


Copyright 2006 OpenMobileIS. All Rights Reserved.