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 getAgent(java.lang.String agentName)
          utility method to get AdfFacesAgent application constant (int) from agent name strings
static java.lang.String getAgentName(int agentId)
          utility method to get agent name string from AdfFacesAgent application constant (int)
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

getAgent

public static int getAgent(java.lang.String agentName)
utility method to get AdfFacesAgent application constant (int) from agent name strings

Parameters:
agentName -
Returns:

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:

getAgentName

public static java.lang.String getAgentName(int agentId)
utility method to get agent name string from AdfFacesAgent application constant (int)

Parameters:
agentId -
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-2007 Apache Software Foundation. All Rights Reserved.