oracle.adf.view.faces.context
Interface Agent


public interface Agent

The Agent interface describes the client that is making the request that will display the rendered output.

Implementations that provide the set of capabilities must clearly define the names of these capabilities and their values.

Capability names that are implementation private must be defined so using appropriate naming schemes. ADF private capability names are prefixed using "-adfinternal-xxx", and such capability names (and their values) may change at anytime (and not guaranteed to be supported in future releases).


Field Summary
static java.lang.String AGENT_GECKO
          Constant for Gecko agent.
static java.lang.String AGENT_IE
          Constant for Internet Explorer agent
static java.lang.String AGENT_WEBKIT
          Constant for Apple Webkit agent.
static java.lang.String PLATFORM_LINUX
          Constant for linux platform
static java.lang.String PLATFORM_MAC
          Constant for MAC platform
static java.lang.String PLATFORM_PALM
          Constant for plam platform
static java.lang.String PLATFORM_PPC
          Constant for pocket pc platform
static java.lang.String PLATFORM_SOLARIS
          Constant for solaris platform
static java.lang.String PLATFORM_WINDOWS
          Constant for windows platform
static java.lang.Object TYPE_DESKTOP
          Constant for desktop devices
static java.lang.Object TYPE_PDA
          Constant for handheld sized devices (Pocket-PC, Palm)
static java.lang.Object TYPE_PHONE
          Constant for Phone sized devices
static java.lang.Object TYPE_TELNET
          Constant for telnet device type
static java.lang.Object TYPE_UNKNOWN
          Constant for Unknown device type
 
Method Summary
 java.lang.String getAgentName()
           
 java.lang.String getAgentVersion()
           
 java.util.Map getCapabilities()
           
 java.lang.String getHardwareMakeModel()
           
 java.lang.String getPlatformName()
           
 java.lang.String getPlatformVersion()
           
 java.lang.Object getType()
           
 

Field Detail

TYPE_UNKNOWN

public static final java.lang.Object TYPE_UNKNOWN
Constant for Unknown device type


TYPE_TELNET

public static final java.lang.Object TYPE_TELNET
Constant for telnet device type


TYPE_DESKTOP

public static final java.lang.Object TYPE_DESKTOP
Constant for desktop devices


TYPE_PDA

public static final java.lang.Object TYPE_PDA
Constant for handheld sized devices (Pocket-PC, Palm)


TYPE_PHONE

public static final java.lang.Object TYPE_PHONE
Constant for Phone sized devices


PLATFORM_WINDOWS

public static final java.lang.String PLATFORM_WINDOWS
Constant for windows platform

See Also:
Constant Field Values

PLATFORM_LINUX

public static final java.lang.String PLATFORM_LINUX
Constant for linux platform

See Also:
Constant Field Values

PLATFORM_MAC

public static final java.lang.String PLATFORM_MAC
Constant for MAC platform

See Also:
Constant Field Values

PLATFORM_PALM

public static final java.lang.String PLATFORM_PALM
Constant for plam platform

See Also:
Constant Field Values

PLATFORM_SOLARIS

public static final java.lang.String PLATFORM_SOLARIS
Constant for solaris platform

See Also:
Constant Field Values

PLATFORM_PPC

public static final java.lang.String PLATFORM_PPC
Constant for pocket pc platform

See Also:
Constant Field Values

AGENT_IE

public static final java.lang.String AGENT_IE
Constant for Internet Explorer agent

See Also:
Constant Field Values

AGENT_GECKO

public static final java.lang.String AGENT_GECKO
Constant for Gecko agent. Used for all Gecko based agents like Mozilla, Netscape 6+

See Also:
Constant Field Values

AGENT_WEBKIT

public static final java.lang.String AGENT_WEBKIT
Constant for Apple Webkit agent. Used for all Webkit based agent like Safari

See Also:
Constant Field Values
Method Detail

getType

public java.lang.Object getType()
Returns:
return the Type of Agent. Returns TYPE_UNKNOWN if not available.
E.g. desktop, pda, phone

getAgentName

public java.lang.String getAgentName()
Returns:
return the canonical name of the agent (browser application). Returns null if not available.
E.g. gecko, ie, opera, pocketie

getAgentVersion

public java.lang.String getAgentVersion()
Returns:
return the version number of the agent (browser application). Return null if not available.

getPlatformName

public java.lang.String getPlatformName()
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()
Returns:
return the version number for the platform. Returns null if not available.

getHardwareMakeModel

public java.lang.String getHardwareMakeModel()
Returns:
return a canonical name for the Hardware make and Model. Re turns null if not available.
E.g nokia6600, sonyericssonP900, nokai3650i

getCapabilities

public java.util.Map getCapabilities()
Returns:
Map of capability names and their values for the current client request.
Some of the available capability names are:
height- provides the screen height in pixels of the Agent as an Integer.
width- provides the screen width in pixels of the Agent as an Integer.
dom- provides the DOM API support of the agent as a String. Possible values are: level2, level1, form, and none.
frames- returns a Boolean value signifying whether or not the Agent supports frames.
accessKeys- returns a Boolean value signifying whether or not the Agent supports accessKeys.


Copyright © 2003-2007 Oracle Corporation. All Rights Reserved.