org.apache.myfaces.trinidadinternal.agent
Class AgentNameUtil

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.agent.AgentNameUtil

public class AgentNameUtil
extends java.lang.Object

An utility class that maps agent/platform name strings to AdFacesAgent Application constants and vice versa


Constructor Summary
AgentNameUtil()
           
 
Method Summary
static int getAgentType(java.lang.Object otype)
          utility method to get AdfFacesAgent application constant (int) from Agent type objects
static int getPlatform(java.lang.String platformName)
          utility method to get AdfFacesAgent application constant (int) from platform/os name strings
static java.lang.String getPlatformName(int platformId)
          utility method to get platform name string from AdfFacesAgent application constant (int)
 java.lang.Object getType(int type)
          utility method to get type obejct from AdfFacesAgent application constant (int)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentNameUtil

public AgentNameUtil()
Method Detail

getPlatform

public static int getPlatform(java.lang.String platformName)
utility method to get AdfFacesAgent application constant (int) from platform/os name strings

Parameters:
platformName -
Returns:

getAgentType

public static int getAgentType(java.lang.Object otype)
utility method to get AdfFacesAgent application constant (int) from Agent type objects

Parameters:
otype -
Returns:

getPlatformName

public static java.lang.String getPlatformName(int platformId)
utility method to get platform name string from AdfFacesAgent application constant (int)

Parameters:
platformId -
Returns:

getType

public java.lang.Object getType(int type)
utility method to get type obejct from AdfFacesAgent application constant (int)

Parameters:
type -
Returns:


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.