org.apache.myfaces.trinidadinternal.agent
Enum TrinidadAgent.Application

java.lang.Object
  extended by java.lang.Enum<TrinidadAgent.Application>
      extended by org.apache.myfaces.trinidadinternal.agent.TrinidadAgent.Application
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TrinidadAgent.Application>
Enclosing class:
TrinidadAgent

public static enum TrinidadAgent.Application
extends java.lang.Enum<TrinidadAgent.Application>

Enumeration representing an Application


Enum Constant Summary
BLACKBERRY
          Application enum for the BlackBerry browser.
EMAIL
          Application enum for email.
GECKO
          Application enum for browsers based on the Gecko Layout Engine, eg: Mozilla, Netscape 7.0+
GENERICPDA
          Application enum for the basic HTMLbrowser.
GOOGLEBOT
          Application enum for Google web crawler.
ICE
          Application enum for the ICE Browser
IEXPLORER
          Application enum for the Microsoft Internet Explorer browser.
KONQUEROR
          Application enum for Konqueror.
MSNBOT
          Application enum for Bing web crawler.
NET_FRONT
          Application enum for the NetFront browser.
NETSCAPE
          Application enum for the Netscape Navigator browser.
NOKIA_S60
          Application enum for the Nokia S60 browser.
OPERA
          Application enum for opera.
ORACLE_SES
          Application enum for Oracle SES.
PIXO
          Application enum for the Pixo Microbrowser
PTG
          Application enum for iAS wireless (PTG) client
SAFARI
          Application enum for the Safari browser.
SIMPLE_RESULT
          Application enum for SimpleResult intermediate Form
UNKNOWN
          Application enum when the user agent isn't known.
WEB_CLIPPING
          Application enum for Palm Web Clippings
WML
          Application enum for the WML Microbrowser
 
Method Summary
static TrinidadAgent.Application fromAgentName(java.lang.String agentName)
          Return the appropriate Application instance given the name of an Agent.
static TrinidadAgent.Application fromApplicationName(java.lang.String applicationName)
          Return the appropriate Application instance given the name of an Application
 java.lang.String getAgentName()
          Returns the agent name that this Application is registered under
 java.lang.String getApplicationName()
          Returns the application name that this Application is registered under
static TrinidadAgent.Application valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TrinidadAgent.Application[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNKNOWN

public static final TrinidadAgent.Application UNKNOWN
Application enum when the user agent isn't known.


NETSCAPE

public static final TrinidadAgent.Application NETSCAPE
Application enum for the Netscape Navigator browser.


IEXPLORER

public static final TrinidadAgent.Application IEXPLORER
Application enum for the Microsoft Internet Explorer browser.


GECKO

public static final TrinidadAgent.Application GECKO
Application enum for browsers based on the Gecko Layout Engine, eg: Mozilla, Netscape 7.0+


WEB_CLIPPING

public static final TrinidadAgent.Application WEB_CLIPPING
Application enum for Palm Web Clippings


ICE

public static final TrinidadAgent.Application ICE
Application enum for the ICE Browser


PIXO

public static final TrinidadAgent.Application PIXO
Application enum for the Pixo Microbrowser


WML

public static final TrinidadAgent.Application WML
Application enum for the WML Microbrowser


SIMPLE_RESULT

public static final TrinidadAgent.Application SIMPLE_RESULT
Application enum for SimpleResult intermediate Form


PTG

public static final TrinidadAgent.Application PTG
Application enum for iAS wireless (PTG) client


NET_FRONT

public static final TrinidadAgent.Application NET_FRONT
Application enum for the NetFront browser.


SAFARI

public static final TrinidadAgent.Application SAFARI
Application enum for the Safari browser.


BLACKBERRY

public static final TrinidadAgent.Application BLACKBERRY
Application enum for the BlackBerry browser.


NOKIA_S60

public static final TrinidadAgent.Application NOKIA_S60
Application enum for the Nokia S60 browser.


GENERICPDA

public static final TrinidadAgent.Application GENERICPDA
Application enum for the basic HTMLbrowser.


KONQUEROR

public static final TrinidadAgent.Application KONQUEROR
Application enum for Konqueror.


EMAIL

public static final TrinidadAgent.Application EMAIL
Application enum for email.


OPERA

public static final TrinidadAgent.Application OPERA
Application enum for opera.


GOOGLEBOT

public static final TrinidadAgent.Application GOOGLEBOT
Application enum for Google web crawler.


MSNBOT

public static final TrinidadAgent.Application MSNBOT
Application enum for Bing web crawler.


ORACLE_SES

public static final TrinidadAgent.Application ORACLE_SES
Application enum for Oracle SES.

Method Detail

values

public static TrinidadAgent.Application[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TrinidadAgent.Application c : TrinidadAgent.Application.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TrinidadAgent.Application valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

fromApplicationName

public static TrinidadAgent.Application fromApplicationName(java.lang.String applicationName)
Return the appropriate Application instance given the name of an Application

Parameters:
applicationName - Name of application to return the instance of
Returns:
Then Application instance for this name, if any

fromAgentName

public static TrinidadAgent.Application fromAgentName(java.lang.String agentName)
Return the appropriate Application instance given the name of an Agent. For backwards compatibility reasons, alias names for some Agents are also supported.

Parameters:
agentName - Name of Agent to return the instance of
Returns:
Then Application instance for this name, if any

getApplicationName

public java.lang.String getApplicationName()
Returns the application name that this Application is registered under

Returns:
application name that this Application is registered under

getAgentName

public java.lang.String getAgentName()
Returns the agent name that this Application is registered under

Returns:
agent name that this Application is registered under


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