org.apache.myfaces.trinidadinternal.agent
Class DefaultAgent

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.agent.DefaultAgent
All Implemented Interfaces:
org.apache.myfaces.trinidad.context.Agent
Direct Known Subclasses:
AgentImpl

public class DefaultAgent
extends java.lang.Object
implements org.apache.myfaces.trinidad.context.Agent

Default base class for Agent


Field Summary
 
Fields inherited from interface org.apache.myfaces.trinidad.context.Agent
AGENT_BLACKBERRY, AGENT_GECKO, AGENT_IE, AGENT_WEBKIT, PLATFORM_BLACKBERRY, PLATFORM_LINUX, PLATFORM_MAC, PLATFORM_MACOS, PLATFORM_PALM, PLATFORM_PPC, PLATFORM_SOLARIS, PLATFORM_WINDOWS, TYPE_DESKTOP, TYPE_PDA, TYPE_PHONE, TYPE_TELNET, TYPE_UNKNOWN
 
Constructor Summary
DefaultAgent()
           
 
Method Summary
 java.lang.String getAgentName()
           
 java.lang.String getAgentVersion()
           
 java.util.Map<java.lang.Object,java.lang.Object> getCapabilities()
           
 java.lang.String getHardwareMakeModel()
           
 java.lang.String getPlatformName()
           
 java.lang.String getPlatformVersion()
           
 java.lang.Object getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAgent

public DefaultAgent()
Method Detail

getType

public java.lang.Object getType()
Specified by:
getType in interface org.apache.myfaces.trinidad.context.Agent
Returns:
return the Type of Agent. Returns TYPE_UNKNOWN if not available.
E.g. desktop, pda, phone

getAgentName

public java.lang.String getAgentName()
Specified by:
getAgentName in interface org.apache.myfaces.trinidad.context.Agent
Returns:
return the canonical name of the Agent. Returns null if not available.
E.g. gecko, ie, opera, pocketie

getAgentVersion

public java.lang.String getAgentVersion()
Specified by:
getAgentVersion in interface org.apache.myfaces.trinidad.context.Agent
Returns:
return the version number of the Agent. Return null if not available.

getPlatformName

public java.lang.String getPlatformName()
Specified by:
getPlatformName in interface org.apache.myfaces.trinidad.context.Agent
Returns:
return the canonical name for the platform. Returns null if not available.
E.g ppc, series60, windows, mac, linux, solaris

getPlatformVersion

public java.lang.String getPlatformVersion()
Specified by:
getPlatformVersion in interface org.apache.myfaces.trinidad.context.Agent
Returns:
return the version number for the platform. Returns null if not available.

getHardwareMakeModel

public java.lang.String getHardwareMakeModel()
Specified by:
getHardwareMakeModel in interface org.apache.myfaces.trinidad.context.Agent
Returns:
return a canonical name for the Hardware make and Model. Returns null if not available.
E.g nokia6600, sonyericssonP900, nokai3650i

getCapabilities

public java.util.Map<java.lang.Object,java.lang.Object> getCapabilities()
Specified by:
getCapabilities in interface org.apache.myfaces.trinidad.context.Agent
Returns:
Map of capability name and value for the current Agent.


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