org.apache.myfaces.trinidadinternal.agent
Class AgentUtil

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

public class AgentUtil
extends java.lang.Object

agent util class


Constructor Summary
AgentUtil()
           
 
Method Summary
static TrinidadAgent getAgent(javax.faces.context.FacesContext context)
          Get agent for the current faces context
static TrinidadAgent getAgent(int type, int browser, java.lang.String agentVersion, int platform)
          Construct an AdfFacesAgent from agentType, agent application constant, agent version and plaform application constant //TODO: Check: if this is really needed
static TrinidadAgent getUnknownAgent()
          Get a default agent, that defines no characteristics.
static TrinidadAgent mergeCapabilities(TrinidadAgent agent, java.util.Map<java.lang.Object,java.lang.Object> capabilities)
          Merge capabilities provided with the Agent capabilities
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentUtil

public AgentUtil()
Method Detail

getAgent

public static TrinidadAgent getAgent(int type,
                                     int browser,
                                     java.lang.String agentVersion,
                                     int platform)
Construct an AdfFacesAgent from agentType, agent application constant, agent version and plaform application constant //TODO: Check: if this is really needed

Parameters:
type -
browser -
agentVersion -
platform -
Returns:

getUnknownAgent

public static TrinidadAgent getUnknownAgent()
Get a default agent, that defines no characteristics.

Returns:

getAgent

public static TrinidadAgent getAgent(javax.faces.context.FacesContext context)
Get agent for the current faces context

Parameters:
context -
Returns:

mergeCapabilities

public static TrinidadAgent mergeCapabilities(TrinidadAgent agent,
                                              java.util.Map<java.lang.Object,java.lang.Object> capabilities)
Merge capabilities provided with the Agent capabilities

Parameters:
agent - Agent to merge the capabilities with
capabilities - List (array of {name, value}) capabilities that should be merged
Returns:
An Agent with the capabilities merged with the provided agent


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.