org.apache.myfaces.trinidadinternal.agent
Interface TrinidadAgent

All Superinterfaces:
org.apache.myfaces.trinidad.context.Agent
All Known Implementing Classes:
TrinidadAgentImpl

public interface TrinidadAgent
extends org.apache.myfaces.trinidad.context.Agent

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.

Author:
The Oracle ADF Faces Team

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 Safari browser.
static int APPLICATION_GECKO
          Application constant for browsers based on the Gecko Layout Engine, eg: Mozilla, Netscape 7.0+
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_MOZILLA
          Deprecated. since 2.2.0. Use APPLICATION_GECKO.
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_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_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_NAVIGATION
           
static CapabilityKey CAP_NOWRAP
          true if supports disabling wrapping
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_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 int OS_BLACKBERRY
          OS constant for any BlackBerry device
static int OS_LINUX
          OS constant for any Linux version.
static int OS_MACOS
          OS constant for Apple MacOS.
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.Object STYLES_EXTERNAL
           
static java.lang.Object STYLES_INTERNAL
           
static java.lang.Object STYLES_NONE
           
static java.lang.Object TABLES_CAP_ADVANCED
           
static java.lang.Object TABLES_CAP_ADVANCED_ATTRS
           
static java.lang.Object TABLES_CAP_BASIC
           
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
 
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_TELNET, TYPE_UNKNOWN
 
Method Summary
 java.lang.Object clone()
           
 int getAgentApplication()
          Returns the specific application to which we're rendering.
 int getAgentMajorVersion()
          Returns the major version number of the application, or 0 if a version number couldn't be identified.
 int getAgentOS()
          Returns the client operating system.
 int getAgentType()
          Returns the type of agent to which we're rendering.
 java.lang.String getAgentVersion()
          Returns the full, unparsed version string.
 java.lang.Object getCapability(CapabilityKey key)
          Returns a capability of a TrinidadAgent
 
Methods inherited from interface org.apache.myfaces.trinidad.context.Agent
getAgentName, getCapabilities, getHardwareMakeModel, getPlatformName, getPlatformVersion, getType
 

Field Detail

CAP_DOM

static final CapabilityKey CAP_DOM

CAP_XMLDOM

static final CapabilityKey CAP_XMLDOM

CAP_ID

static final CapabilityKey CAP_ID

CAP_ACCESS_KEYS

static final CapabilityKey CAP_ACCESS_KEYS

CAP_PARTIAL_RENDERING

static final CapabilityKey CAP_PARTIAL_RENDERING

CAP_DISABLED_FORM_ELEMENTS

static final CapabilityKey CAP_DISABLED_FORM_ELEMENTS

CAP_READONLY_FORM_ELEMENTS

static final CapabilityKey CAP_READONLY_FORM_ELEMENTS

CAP_AUTO_COMPLETE_FORM_ELEMENTS

static final CapabilityKey CAP_AUTO_COMPLETE_FORM_ELEMENTS

CAP_ADVANCED_BUTTONS

static final CapabilityKey CAP_ADVANCED_BUTTONS

CAP_WIDTH

static final CapabilityKey CAP_WIDTH

CAP_HEIGHT

static final CapabilityKey CAP_HEIGHT

CAP_TEXT_PRESENTATION

static final CapabilityKey CAP_TEXT_PRESENTATION

CAP_ADVANCED_FORMS

static final CapabilityKey CAP_ADVANCED_FORMS

CAP_TABLES

static final CapabilityKey CAP_TABLES

CAP_FRAMES

static final CapabilityKey CAP_FRAMES

CAP_TARGET

static final CapabilityKey CAP_TARGET

CAP_IFRAMES

static final CapabilityKey CAP_IFRAMES

CAP_INTRINSIC_EVENTS

static final CapabilityKey CAP_INTRINSIC_EVENTS

CAP_STYLE_ATTRIBUTES

static final CapabilityKey CAP_STYLE_ATTRIBUTES

CAP_NAME_IDENTIFICATION

static final CapabilityKey CAP_NAME_IDENTIFICATION

CAP_FIELDSET

static final CapabilityKey CAP_FIELDSET

CAP_CSS_SELECTORS

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


CAP_NOWRAP

static final CapabilityKey CAP_NOWRAP
true if supports disabling wrapping


CAP_VALIGN

static final CapabilityKey CAP_VALIGN
true if supports vertical alignment


CAP_ALT_RENDERS_TOOLTIP_ON_IMAGE

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


CAP_SCRIPTING_SPEED

static final CapabilityKey CAP_SCRIPTING_SPEED

CAP_MULTIPLE_WINDOWS

static final CapabilityKey CAP_MULTIPLE_WINDOWS
true if multiple windows can be opened


CAP_NAVIGATION

static final CapabilityKey CAP_NAVIGATION

CAP_EDITING

static final CapabilityKey CAP_EDITING

CAP_IMAGE_STRETCH

static final CapabilityKey CAP_IMAGE_STRETCH

CAP_GIF_TYPE_IMAGE

static final CapabilityKey CAP_GIF_TYPE_IMAGE

CAP_JPEG_TYPE_IMAGE

static final CapabilityKey CAP_JPEG_TYPE_IMAGE

CAP_PNG_TYPE_IMAGE

static final CapabilityKey CAP_PNG_TYPE_IMAGE

CAP_TRANSPARENT_PNG_TYPE_IMAGE

static final CapabilityKey CAP_TRANSPARENT_PNG_TYPE_IMAGE

CAP_BMP_TYPE_IMAGE

static final CapabilityKey CAP_BMP_TYPE_IMAGE

CAP_SUPPORTS_DISABLED_OPTIONS

static final CapabilityKey CAP_SUPPORTS_DISABLED_OPTIONS

CAP_IS_JDEV_VE

static final CapabilityKey CAP_IS_JDEV_VE

CAP_IS_JDEV_JAVASCRIPT_VE

static final CapabilityKey CAP_IS_JDEV_JAVASCRIPT_VE

DOM_CAP_NONE

static final java.lang.Object DOM_CAP_NONE

DOM_CAP_FORM

static final java.lang.Object DOM_CAP_FORM

DOM_CAP_LEVEL_1

static final java.lang.Object DOM_CAP_LEVEL_1

DOM_CAP_LEVEL_2

static final java.lang.Object DOM_CAP_LEVEL_2

SCRIPTING_SPEED_CAP_NONE

static final java.lang.Object SCRIPTING_SPEED_CAP_NONE

SCRIPTING_SPEED_CAP_SLOW

static final java.lang.Object SCRIPTING_SPEED_CAP_SLOW

SCRIPTING_SPEED_CAP_FAST

static final java.lang.Object SCRIPTING_SPEED_CAP_FAST

TABLES_CAP_BASIC

static final java.lang.Object TABLES_CAP_BASIC

TABLES_CAP_ADVANCED_ATTRS

static final java.lang.Object TABLES_CAP_ADVANCED_ATTRS

TABLES_CAP_ADVANCED

static final java.lang.Object TABLES_CAP_ADVANCED

STYLES_NONE

static final java.lang.Object STYLES_NONE

STYLES_INTERNAL

static final java.lang.Object STYLES_INTERNAL

STYLES_EXTERNAL

static final java.lang.Object STYLES_EXTERNAL

SELECTORS_NONE

static final java.lang.Object SELECTORS_NONE

SELECTORS_SINGLE

static final java.lang.Object SELECTORS_SINGLE

SELECTORS_MULTIPLE

static final java.lang.Object SELECTORS_MULTIPLE

TYPE_DESKTOP

static final int TYPE_DESKTOP
Application constant for Desktop devices

See Also:
Constant Field Values

TYPE_PHONE

static final int TYPE_PHONE
Application constant for Phone-sized devices

See Also:
Constant Field Values

TYPE_PDA

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

See Also:
Constant Field Values

TYPE_VOICE

static final int TYPE_VOICE
Application constant for voice

See Also:
Constant Field Values

APPLICATION_UNKNOWN

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

See Also:
Constant Field Values

APPLICATION_NETSCAPE

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.

See Also:
Constant Field Values

APPLICATION_IEXPLORER

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

See Also:
Constant Field Values

APPLICATION_GECKO

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

See Also:
Constant Field Values

APPLICATION_MOZILLA

@Deprecated
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).

See Also:
Constant Field Values

APPLICATION_WEB_CLIPPING

static final int APPLICATION_WEB_CLIPPING
Application constant for Palm Web Clippings

See Also:
Constant Field Values

APPLICATION_ICE

static final int APPLICATION_ICE
Application constant for the ICE Browser

See Also:
Constant Field Values

APPLICATION_PIXO

static final int APPLICATION_PIXO
Application constant for the Pixo Microbrowser

See Also:
Constant Field Values

APPLICATION_WML

static final int APPLICATION_WML
Application constant for a WML Microbrowser

See Also:
Constant Field Values

APPLICATION_SIMPLE_RESULT

static final int APPLICATION_SIMPLE_RESULT
Application constant for SimpleResult intermediate Form

See Also:
Constant Field Values

APPLICATION_PTG

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

See Also:
Constant Field Values

APPLICATION_NET_FRONT

static final int APPLICATION_NET_FRONT
Application constant for the NetFront browser.

See Also:
Constant Field Values

APPLICATION_SAFARI

static final int APPLICATION_SAFARI
Application constant for the Safari browser.

See Also:
Constant Field Values

APPLICATION_BLACKBERRY

static final int APPLICATION_BLACKBERRY
Application constant for the Safari browser.

See Also:
Constant Field Values

OS_UNKNOWN

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

See Also:
Constant Field Values

OS_WINDOWS

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

See Also:
Constant Field Values

OS_MACOS

static final int OS_MACOS
OS constant for Apple MacOS.

See Also:
Constant Field Values

OS_LINUX

static final int OS_LINUX
OS constant for any Linux version.

See Also:
Constant Field Values

OS_SOLARIS

static final int OS_SOLARIS
OS constant for any Solaris version.

See Also:
Constant Field Values

OS_PALM

static final int OS_PALM
OS constant for any Palm version.

See Also:
Constant Field Values

OS_PPC

static final int OS_PPC
OS constant for any Windows Pocket PC

See Also:
Constant Field Values

OS_BLACKBERRY

static final int OS_BLACKBERRY
OS constant for any BlackBerry device

See Also:
Constant Field Values

AGENT_NETFRONT

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

See Also:
Constant Field Values

AGENT_NETSCAPE

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

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

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

See Also:
Constant Field Values

AGENT_PIXO

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

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

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

See Also:
Constant Field Values

AGENT_XIINO

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

See Also:
Constant Field Values

AGENT_ELAINE

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

See Also:
Constant Field Values
Method Detail

getAgentType

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


getAgentApplication

int getAgentApplication()
Returns the specific application to which we're rendering. Returns APPLICATION_UNKNOWN is the application couldn't be identified.


getAgentMajorVersion

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


getAgentVersion

java.lang.String getAgentVersion()
Returns the full, unparsed version string. Returns null if no version string could be identified.

Specified by:
getAgentVersion in interface org.apache.myfaces.trinidad.context.Agent

getAgentOS

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


getCapability

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


clone

java.lang.Object clone()


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