org.apache.myfaces.trinidadinternal.agent
Class TrinidadAgent

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.agent.TrinidadAgent
All Implemented Interfaces:
java.lang.Cloneable, org.apache.myfaces.trinidad.context.Agent
Direct Known Subclasses:
TrinidadAgentImpl

public abstract class TrinidadAgent
extends java.lang.Object
implements org.apache.myfaces.trinidad.context.Agent, java.lang.Cloneable

Extension of public Agent interface. Defines constants/method for AdInternal use. Keeping this Interace as is (from before), but extends the public the current (internal) code base uses this heavily.


Nested Class Summary
static class TrinidadAgent.Application
          Enumeration representing an Application
 
Field Summary
static java.lang.String AGENT_BLAZER
          Name Constant for Blazer agent
static java.lang.String AGENT_ELAINE
          Name Constant for Palm Web clipping (Elaine) agent
static java.lang.String AGENT_ICE_BROWSER
          Name constant for ICE browser agent
static java.lang.String AGENT_NETFRONT
          Name Constant for Netfront agent
static java.lang.String AGENT_NETSCAPE
          Name Constant for Netscape agent.
static java.lang.String AGENT_PIXO
          Name Constant for Pixo agent //@TODO: Check: Are we still supporting Pixo??
static java.lang.String AGENT_PTG
          Name Constant for OracleAS Wireless.
static java.lang.String AGENT_WEBPRO
          Name Constant for Palm Webpro agent //@TODO: Check: Isn't webpro same as netfront access
static java.lang.String AGENT_XIINO
          Name Constant for Xiino agent
static int APPLICATION_BLACKBERRY
          Application constant for the BlackBerry browser.
static int APPLICATION_EMAIL
          Application constant for email.
static int APPLICATION_GECKO
          Application constant for browsers based on the Gecko Layout Engine, eg: Mozilla, Netscape 7.0+
static int APPLICATION_GENERICPDA
          Application constant for the basic HTMLbrowser.
static int APPLICATION_GOOGLEBOT
          Application constant for Google web crawler.
static int APPLICATION_ICE
          Application constant for the ICE Browser
static int APPLICATION_IEXPLORER
          Application constant for the Microsoft Internet Explorer browser.
static int APPLICATION_KONQUEROR
          Application constant for Konqueror.
static int APPLICATION_MOZILLA
          Deprecated. since 2.2.0. Use APPLICATION_GECKO.
static int APPLICATION_MSNBOT
          Application constant for Bing web crawler.
static int APPLICATION_NET_FRONT
          Application constant for the NetFront browser.
static int APPLICATION_NETSCAPE
          Application constant for the Netscape Navigator browser.
static int APPLICATION_NOKIA_S60
          Application constant for the Nokia S60 browser.
static int APPLICATION_OPERA
          Application constant for opera.
static int APPLICATION_ORACLE_SES
          Application constant for Oracle SES.
static int APPLICATION_PIXO
          Application constant for the Pixo Microbrowser
static int APPLICATION_PTG
          Application constant for iAS wireless (PTG) client
static int APPLICATION_SAFARI
          Application constant for the Safari browser.
static int APPLICATION_SIMPLE_RESULT
          Application constant for SimpleResult intermediate Form
static int APPLICATION_UNKNOWN
          Application constant for an entirely unknown application.
static int APPLICATION_WEB_CLIPPING
          Application constant for Palm Web Clippings
static int APPLICATION_WML
          Application constant for a WML Microbrowser
static CapabilityKey CAP_ACCESS_KEYS
           
static CapabilityKey CAP_ADVANCED_BUTTONS
           
static CapabilityKey CAP_ADVANCED_FORMS
           
static CapabilityKey CAP_ALT_RENDERS_TOOLTIP_ON_IMAGE
          true if the alt key renders a tooltip for an image *
static CapabilityKey CAP_AUTO_COMPLETE_FORM_ELEMENTS
           
static CapabilityKey CAP_BMP_TYPE_IMAGE
           
static CapabilityKey CAP_CSS_SELECTORS
          capability describing level of support for css selectors
static CapabilityKey CAP_DISABLED_FORM_ELEMENTS
           
static CapabilityKey CAP_DOM
           
static CapabilityKey CAP_EDITING
           
static CapabilityKey CAP_FIELDSET
           
static CapabilityKey CAP_FRAMES
           
static CapabilityKey CAP_GIF_TYPE_IMAGE
           
static CapabilityKey CAP_HEIGHT
           
static CapabilityKey CAP_HISTORY_MANAGEMENT
          Session History Management (HTML5 History) Capability indicating support for APIs like history.pushState, history.replaceState, etc.
static CapabilityKey CAP_ID
           
static CapabilityKey CAP_IFRAMES
           
static CapabilityKey CAP_IMAGE_STRETCH
           
static CapabilityKey CAP_INTRINSIC_EVENTS
           
static CapabilityKey CAP_IS_JDEV_JAVASCRIPT_VE
           
static CapabilityKey CAP_IS_JDEV_VE
           
static CapabilityKey CAP_JPEG_TYPE_IMAGE
           
static CapabilityKey CAP_MULTIPLE_WINDOWS
          true if multiple windows can be opened
static CapabilityKey CAP_NAME_IDENTIFICATION
           
static CapabilityKey CAP_NARROW_SCREEN
           
static CapabilityKey CAP_NAVIGATION
           
static CapabilityKey CAP_NOWRAP
          true if supports disabling wrapping
static CapabilityKey CAP_ONCLICK_IMG_INPUT
           
static CapabilityKey CAP_PARTIAL_RENDERING
           
static CapabilityKey CAP_PNG_TYPE_IMAGE
           
static CapabilityKey CAP_READONLY_FORM_ELEMENTS
           
static CapabilityKey CAP_SCRIPTING_SPEED
           
static CapabilityKey CAP_STYLE_ATTRIBUTES
           
static CapabilityKey CAP_SUPPORTS_DISABLED_OPTIONS
           
static CapabilityKey CAP_TABLES
           
static CapabilityKey CAP_TARGET
           
static CapabilityKey CAP_TEXT_PRESENTATION
           
static CapabilityKey CAP_TOUCH_SCREEN
          Touch-screen capability, indicating the agent supports TouchEvent and GestureEvent events.
static CapabilityKey CAP_TRANSPARENT_PNG_TYPE_IMAGE
           
static CapabilityKey CAP_VALIGN
          true if supports vertical alignment
static CapabilityKey CAP_WIDTH
           
static CapabilityKey CAP_XMLDOM
           
static java.lang.Object DOM_CAP_FORM
           
static java.lang.Object DOM_CAP_LEVEL_1
           
static java.lang.Object DOM_CAP_LEVEL_2
           
static java.lang.Object DOM_CAP_NONE
           
static java.lang.Object HISTORY_MANAGEMENT_FULL
          Agent fully supports Session History Management (HTML5 History) APIs
static int OS_ANDROID
          OS constant for Android
static int OS_BLACKBERRY
          OS constant for any BlackBerry device
static int OS_GENERICPDA
          OS constant for generic PDA
static int OS_IPHONE
          OS constant for iPhone
static int OS_LINUX
          OS constant for any Linux version.
static int OS_MACOS
          OS constant for Apple MacOS.
static int OS_NOKIA_S60
          OS constant for Symbian
static int OS_PALM
          OS constant for any Palm version.
static int OS_PPC
          OS constant for any Windows Pocket PC
static int OS_SOLARIS
          OS constant for any Solaris version.
static int OS_UNKNOWN
          OS constant for an unknown operating system.
static int OS_WINDOWS
          OS constant for any Microsoft Windows version.
static java.lang.Object SCRIPTING_SPEED_CAP_FAST
           
static java.lang.Object SCRIPTING_SPEED_CAP_NONE
           
static java.lang.Object SCRIPTING_SPEED_CAP_SLOW
           
static java.lang.Object SELECTORS_MULTIPLE
           
static java.lang.Object SELECTORS_NONE
           
static java.lang.Object SELECTORS_SINGLE
           
static java.lang.String SKIN_BLACKBERRY
           
static java.lang.String SKIN_BLACKBERRY_MINIMAL
           
static java.lang.String SKIN_GENERIC_PDA
           
static java.lang.String SKIN_WEBKIT_DEFAULT
           
static java.lang.String SKIN_WEBKIT_IPHONE
           
static java.lang.String SKIN_WEBKIT_LINUX
           
static java.lang.String SKIN_WEBKIT_MAC
           
static java.lang.String SKIN_WEBKIT_NOKIA
           
static java.lang.String SKIN_WEBKIT_WINDOWS
           
static java.lang.String SKIN_WINDOWS_MOBILE
           
static java.lang.Object STYLES_EXTERNAL
           
static java.lang.Object STYLES_INTERNAL
           
static java.lang.Object STYLES_NONE
           
static java.lang.Object STYLES_STYLE_ONLY
           
static java.lang.Object TABLES_CAP_ADVANCED
           
static java.lang.Object TABLES_CAP_ADVANCED_ATTRS
           
static java.lang.Object TABLES_CAP_BASIC
           
static java.lang.Object TOUCH_SCREEN_MULTIPLE
          Agent supports multiple finger touch events and gestures
static java.lang.Object TOUCH_SCREEN_NONE
          Agent does not have a touch screen
static java.lang.Object TOUCH_SCREEN_SINGLE
          Agent only supports single finger touch events
static int TYPE_DESKTOP
          Application constant for Desktop devices
static int TYPE_PDA
          Application constant for Palm-sized devices.
static int TYPE_PHONE
          Application constant for Phone-sized devices
static int TYPE_VOICE
          Application constant for voice
static int TYPE_WEBCRAWLER
          Application constant for web crawlers
 
Fields inherited from interface org.apache.myfaces.trinidad.context.Agent
AGENT_BLACKBERRY, AGENT_EMAIL, AGENT_GECKO, AGENT_GENERICPDA, AGENT_GOOGLEBOT, AGENT_IE, AGENT_KONQUEROR, AGENT_MSNBOT, AGENT_NOKIA_S60, AGENT_OPERA, AGENT_ORACLE_SES, AGENT_UNKNOWN, AGENT_VERSION_UNKNOWN, AGENT_WEBKIT, MAKE_MODEL_UNKNOWN, PLATFORM_ANDROID, PLATFORM_BLACKBERRY, PLATFORM_GENERICPDA, PLATFORM_IPHONE, PLATFORM_LINUX, PLATFORM_MAC, PLATFORM_MACOS, PLATFORM_NOKIA_S60, PLATFORM_PALM, PLATFORM_PPC, PLATFORM_SOLARIS, PLATFORM_UNKNOWN, PLATFORM_VERSION_UNKNOWN, PLATFORM_WINDOWS, TYPE_TELNET, TYPE_UNKNOWN
 
Constructor Summary
TrinidadAgent()
           
 
Method Summary
abstract  java.lang.Object clone()
           
protected  TrinidadAgent cloneTrinidadAgent()
          Convenienc method for cloning by subclases.
abstract  TrinidadAgent.Application getAgentApplication()
          Returns the specific application to which we're rendering.
abstract  int getAgentMajorVersion()
          Returns the major version number of the application, or 0 if a version number couldn't be identified.
abstract  int getAgentOS()
          Returns the client operating system.
abstract  int getAgentType()
          Returns the type of agent to which we're rendering.
abstract  java.lang.Object getCapability(CapabilityKey key)
          Returns a capability of a TrinidadAgent
abstract  java.lang.String getSkinFamilyType()
           
abstract  org.apache.myfaces.trinidad.context.Version getVersion()
          Returns the Version identifier to use for comparing the Version of this Agent to other Versions.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.myfaces.trinidad.context.Agent
getAgentName, getAgentVersion, getCapabilities, getHardwareMakeModel, getPlatformName, getPlatformVersion, getType
 

Field Detail

CAP_DOM

public static final CapabilityKey CAP_DOM

CAP_ONCLICK_IMG_INPUT

public static final CapabilityKey CAP_ONCLICK_IMG_INPUT

CAP_XMLDOM

public static final CapabilityKey CAP_XMLDOM

CAP_ID

public static final CapabilityKey CAP_ID

CAP_ACCESS_KEYS

public static final CapabilityKey CAP_ACCESS_KEYS

CAP_PARTIAL_RENDERING

public static final CapabilityKey CAP_PARTIAL_RENDERING

CAP_DISABLED_FORM_ELEMENTS

public static final CapabilityKey CAP_DISABLED_FORM_ELEMENTS

CAP_READONLY_FORM_ELEMENTS

public static final CapabilityKey CAP_READONLY_FORM_ELEMENTS

CAP_AUTO_COMPLETE_FORM_ELEMENTS

public static final CapabilityKey CAP_AUTO_COMPLETE_FORM_ELEMENTS

CAP_ADVANCED_BUTTONS

public static final CapabilityKey CAP_ADVANCED_BUTTONS

CAP_WIDTH

public static final CapabilityKey CAP_WIDTH

CAP_HEIGHT

public static final CapabilityKey CAP_HEIGHT

CAP_TOUCH_SCREEN

public static final CapabilityKey CAP_TOUCH_SCREEN
Touch-screen capability, indicating the agent supports TouchEvent and GestureEvent events.


CAP_HISTORY_MANAGEMENT

public static final CapabilityKey CAP_HISTORY_MANAGEMENT
Session History Management (HTML5 History) Capability indicating support for APIs like history.pushState, history.replaceState, etc.


CAP_TEXT_PRESENTATION

public static final CapabilityKey CAP_TEXT_PRESENTATION

CAP_ADVANCED_FORMS

public static final CapabilityKey CAP_ADVANCED_FORMS

CAP_TABLES

public static final CapabilityKey CAP_TABLES

CAP_FRAMES

public static final CapabilityKey CAP_FRAMES

CAP_TARGET

public static final CapabilityKey CAP_TARGET

CAP_IFRAMES

public static final CapabilityKey CAP_IFRAMES

CAP_INTRINSIC_EVENTS

public static final CapabilityKey CAP_INTRINSIC_EVENTS

CAP_STYLE_ATTRIBUTES

public static final CapabilityKey CAP_STYLE_ATTRIBUTES

CAP_NAME_IDENTIFICATION

public static final CapabilityKey CAP_NAME_IDENTIFICATION

CAP_FIELDSET

public static final CapabilityKey CAP_FIELDSET

CAP_CSS_SELECTORS

public static final CapabilityKey CAP_CSS_SELECTORS
capability describing level of support for css selectors


CAP_NOWRAP

public static final CapabilityKey CAP_NOWRAP
true if supports disabling wrapping


CAP_VALIGN

public static final CapabilityKey CAP_VALIGN
true if supports vertical alignment


CAP_ALT_RENDERS_TOOLTIP_ON_IMAGE

public static final CapabilityKey CAP_ALT_RENDERS_TOOLTIP_ON_IMAGE
true if the alt key renders a tooltip for an image *


CAP_SCRIPTING_SPEED

public static final CapabilityKey CAP_SCRIPTING_SPEED

CAP_MULTIPLE_WINDOWS

public static final CapabilityKey CAP_MULTIPLE_WINDOWS
true if multiple windows can be opened


CAP_NAVIGATION

public static final CapabilityKey CAP_NAVIGATION

CAP_EDITING

public static final CapabilityKey CAP_EDITING

CAP_IMAGE_STRETCH

public static final CapabilityKey CAP_IMAGE_STRETCH

CAP_GIF_TYPE_IMAGE

public static final CapabilityKey CAP_GIF_TYPE_IMAGE

CAP_JPEG_TYPE_IMAGE

public static final CapabilityKey CAP_JPEG_TYPE_IMAGE

CAP_PNG_TYPE_IMAGE

public static final CapabilityKey CAP_PNG_TYPE_IMAGE

CAP_TRANSPARENT_PNG_TYPE_IMAGE

public static final CapabilityKey CAP_TRANSPARENT_PNG_TYPE_IMAGE

CAP_BMP_TYPE_IMAGE

public static final CapabilityKey CAP_BMP_TYPE_IMAGE

CAP_SUPPORTS_DISABLED_OPTIONS

public static final CapabilityKey CAP_SUPPORTS_DISABLED_OPTIONS

CAP_IS_JDEV_VE

public static final CapabilityKey CAP_IS_JDEV_VE

CAP_IS_JDEV_JAVASCRIPT_VE

public static final CapabilityKey CAP_IS_JDEV_JAVASCRIPT_VE

CAP_NARROW_SCREEN

public static final CapabilityKey CAP_NARROW_SCREEN

DOM_CAP_NONE

public static final java.lang.Object DOM_CAP_NONE

DOM_CAP_FORM

public static final java.lang.Object DOM_CAP_FORM

DOM_CAP_LEVEL_1

public static final java.lang.Object DOM_CAP_LEVEL_1

DOM_CAP_LEVEL_2

public static final java.lang.Object DOM_CAP_LEVEL_2

SCRIPTING_SPEED_CAP_NONE

public static final java.lang.Object SCRIPTING_SPEED_CAP_NONE

SCRIPTING_SPEED_CAP_SLOW

public static final java.lang.Object SCRIPTING_SPEED_CAP_SLOW

SCRIPTING_SPEED_CAP_FAST

public static final java.lang.Object SCRIPTING_SPEED_CAP_FAST

TABLES_CAP_BASIC

public static final java.lang.Object TABLES_CAP_BASIC

TABLES_CAP_ADVANCED_ATTRS

public static final java.lang.Object TABLES_CAP_ADVANCED_ATTRS

TABLES_CAP_ADVANCED

public static final java.lang.Object TABLES_CAP_ADVANCED

STYLES_NONE

public static final java.lang.Object STYLES_NONE

STYLES_STYLE_ONLY

public static final java.lang.Object STYLES_STYLE_ONLY

STYLES_INTERNAL

public static final java.lang.Object STYLES_INTERNAL

STYLES_EXTERNAL

public static final java.lang.Object STYLES_EXTERNAL

SELECTORS_NONE

public static final java.lang.Object SELECTORS_NONE

SELECTORS_SINGLE

public static final java.lang.Object SELECTORS_SINGLE

SELECTORS_MULTIPLE

public static final java.lang.Object SELECTORS_MULTIPLE

TOUCH_SCREEN_NONE

public static final java.lang.Object TOUCH_SCREEN_NONE
Agent does not have a touch screen


TOUCH_SCREEN_SINGLE

public static final java.lang.Object TOUCH_SCREEN_SINGLE
Agent only supports single finger touch events


TOUCH_SCREEN_MULTIPLE

public static final java.lang.Object TOUCH_SCREEN_MULTIPLE
Agent supports multiple finger touch events and gestures


HISTORY_MANAGEMENT_FULL

public static final java.lang.Object HISTORY_MANAGEMENT_FULL
Agent fully supports Session History Management (HTML5 History) APIs


TYPE_DESKTOP

public static final int TYPE_DESKTOP
Application constant for Desktop devices

See Also:
Constant Field Values

TYPE_PHONE

public static final int TYPE_PHONE
Application constant for Phone-sized devices

See Also:
Constant Field Values

TYPE_PDA

public static final int TYPE_PDA
Application constant for Palm-sized devices. Pocket-PC, Palm

See Also:
Constant Field Values

TYPE_VOICE

public static final int TYPE_VOICE
Application constant for voice

See Also:
Constant Field Values

TYPE_WEBCRAWLER

public static final int TYPE_WEBCRAWLER
Application constant for web crawlers

See Also:
Constant Field Values

APPLICATION_UNKNOWN

public static final int APPLICATION_UNKNOWN
Application constant for an entirely unknown application.


APPLICATION_NETSCAPE

public static final int APPLICATION_NETSCAPE
Application constant for the Netscape Navigator browser. Note that Netscape 6 is considered as Mozilla, since its rendering engine is that of the Mozilla project.


APPLICATION_IEXPLORER

public static final int APPLICATION_IEXPLORER
Application constant for the Microsoft Internet Explorer browser.


APPLICATION_GECKO

public static final int APPLICATION_GECKO
Application constant for browsers based on the Gecko Layout Engine, eg: Mozilla, Netscape 7.0+


APPLICATION_MOZILLA

@Deprecated
public static final int APPLICATION_MOZILLA
Deprecated. since 2.2.0. Use APPLICATION_GECKO.
Application constant for the Mozilla browser, or browsers based on it (like Netscape 6).


APPLICATION_WEB_CLIPPING

public static final int APPLICATION_WEB_CLIPPING
Application constant for Palm Web Clippings


APPLICATION_ICE

public static final int APPLICATION_ICE
Application constant for the ICE Browser


APPLICATION_PIXO

public static final int APPLICATION_PIXO
Application constant for the Pixo Microbrowser


APPLICATION_WML

public static final int APPLICATION_WML
Application constant for a WML Microbrowser


APPLICATION_SIMPLE_RESULT

public static final int APPLICATION_SIMPLE_RESULT
Application constant for SimpleResult intermediate Form


APPLICATION_PTG

public static final int APPLICATION_PTG
Application constant for iAS wireless (PTG) client


APPLICATION_NET_FRONT

public static final int APPLICATION_NET_FRONT
Application constant for the NetFront browser.


APPLICATION_SAFARI

public static final int APPLICATION_SAFARI
Application constant for the Safari browser.


APPLICATION_BLACKBERRY

public static final int APPLICATION_BLACKBERRY
Application constant for the BlackBerry browser.


APPLICATION_NOKIA_S60

public static final int APPLICATION_NOKIA_S60
Application constant for the Nokia S60 browser.


APPLICATION_GENERICPDA

public static final int APPLICATION_GENERICPDA
Application constant for the basic HTMLbrowser.


APPLICATION_KONQUEROR

public static final int APPLICATION_KONQUEROR
Application constant for Konqueror.


APPLICATION_EMAIL

public static final int APPLICATION_EMAIL
Application constant for email.


APPLICATION_OPERA

public static final int APPLICATION_OPERA
Application constant for opera.


APPLICATION_GOOGLEBOT

public static final int APPLICATION_GOOGLEBOT
Application constant for Google web crawler.


APPLICATION_MSNBOT

public static final int APPLICATION_MSNBOT
Application constant for Bing web crawler.


APPLICATION_ORACLE_SES

public static final int APPLICATION_ORACLE_SES
Application constant for Oracle SES.


OS_UNKNOWN

public static final int OS_UNKNOWN
OS constant for an unknown operating system.

See Also:
Constant Field Values

OS_WINDOWS

public static final int OS_WINDOWS
OS constant for any Microsoft Windows version.

See Also:
Constant Field Values

OS_MACOS

public static final int OS_MACOS
OS constant for Apple MacOS.

See Also:
Constant Field Values

OS_LINUX

public static final int OS_LINUX
OS constant for any Linux version.

See Also:
Constant Field Values

OS_SOLARIS

public static final int OS_SOLARIS
OS constant for any Solaris version.

See Also:
Constant Field Values

OS_PALM

public static final int OS_PALM
OS constant for any Palm version.

See Also:
Constant Field Values

OS_PPC

public static final int OS_PPC
OS constant for any Windows Pocket PC

See Also:
Constant Field Values

OS_BLACKBERRY

public static final int OS_BLACKBERRY
OS constant for any BlackBerry device

See Also:
Constant Field Values

OS_IPHONE

public static final int OS_IPHONE
OS constant for iPhone

See Also:
Constant Field Values

OS_NOKIA_S60

public static final int OS_NOKIA_S60
OS constant for Symbian

See Also:
Constant Field Values

OS_GENERICPDA

public static final int OS_GENERICPDA
OS constant for generic PDA

See Also:
Constant Field Values

OS_ANDROID

public static final int OS_ANDROID
OS constant for Android

See Also:
Constant Field Values

AGENT_NETFRONT

public static final java.lang.String AGENT_NETFRONT
Name Constant for Netfront agent

See Also:
Constant Field Values

AGENT_NETSCAPE

public static final java.lang.String AGENT_NETSCAPE
Name Constant for Netscape agent. Used only for Netscape versions that are not Gecko based such as Netscape 4.7

See Also:
Constant Field Values

AGENT_WEBPRO

public static final java.lang.String AGENT_WEBPRO
Name Constant for Palm Webpro agent //@TODO: Check: Isn't webpro same as netfront access

See Also:
Constant Field Values

AGENT_ICE_BROWSER

public static final java.lang.String AGENT_ICE_BROWSER
Name constant for ICE browser agent

See Also:
Constant Field Values

AGENT_PIXO

public static final java.lang.String AGENT_PIXO
Name Constant for Pixo agent //@TODO: Check: Are we still supporting Pixo??

See Also:
Constant Field Values

AGENT_PTG

public static final java.lang.String AGENT_PTG
Name Constant for OracleAS Wireless. //@TODO: Check: Do we still have to support this??

See Also:
Constant Field Values

AGENT_BLAZER

public static final java.lang.String AGENT_BLAZER
Name Constant for Blazer agent

See Also:
Constant Field Values

AGENT_XIINO

public static final java.lang.String AGENT_XIINO
Name Constant for Xiino agent

See Also:
Constant Field Values

AGENT_ELAINE

public static final java.lang.String AGENT_ELAINE
Name Constant for Palm Web clipping (Elaine) agent

See Also:
Constant Field Values

SKIN_BLACKBERRY

public static final java.lang.String SKIN_BLACKBERRY
See Also:
Constant Field Values

SKIN_BLACKBERRY_MINIMAL

public static final java.lang.String SKIN_BLACKBERRY_MINIMAL
See Also:
Constant Field Values

SKIN_GENERIC_PDA

public static final java.lang.String SKIN_GENERIC_PDA
See Also:
Constant Field Values

SKIN_WEBKIT_IPHONE

public static final java.lang.String SKIN_WEBKIT_IPHONE
See Also:
Constant Field Values

SKIN_WEBKIT_LINUX

public static final java.lang.String SKIN_WEBKIT_LINUX
See Also:
Constant Field Values

SKIN_WEBKIT_MAC

public static final java.lang.String SKIN_WEBKIT_MAC
See Also:
Constant Field Values

SKIN_WEBKIT_NOKIA

public static final java.lang.String SKIN_WEBKIT_NOKIA
See Also:
Constant Field Values

SKIN_WEBKIT_WINDOWS

public static final java.lang.String SKIN_WEBKIT_WINDOWS
See Also:
Constant Field Values

SKIN_WEBKIT_DEFAULT

public static final java.lang.String SKIN_WEBKIT_DEFAULT
See Also:
Constant Field Values

SKIN_WINDOWS_MOBILE

public static final java.lang.String SKIN_WINDOWS_MOBILE
See Also:
Constant Field Values
Constructor Detail

TrinidadAgent

public TrinidadAgent()
Method Detail

getAgentType

public abstract int getAgentType()
Returns the type of agent to which we're rendering. Currently, only web browsers are understood.


getAgentApplication

public abstract TrinidadAgent.Application getAgentApplication()
Returns the specific application to which we're rendering. Returns Application.UNKNOWN is the application couldn't be identified.


getAgentMajorVersion

public abstract int getAgentMajorVersion()
Returns the major version number of the application, or 0 if a version number couldn't be identified.


getVersion

public abstract org.apache.myfaces.trinidad.context.Version getVersion()
Returns the Version identifier to use for comparing the Version of this Agent to other Versions.


getAgentOS

public abstract int getAgentOS()
Returns the client operating system. Returns OS_UNKNOWN if the operating system can't be identified.


getCapability

public abstract java.lang.Object getCapability(CapabilityKey key)
Returns a capability of a TrinidadAgent


clone

public abstract java.lang.Object clone()
Overrides:
clone in class java.lang.Object

getSkinFamilyType

public abstract java.lang.String getSkinFamilyType()

cloneTrinidadAgent

protected final TrinidadAgent cloneTrinidadAgent()
Convenienc method for cloning by subclases.



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