com.guiseframework.platform.web
Enum WebUserAgentProduct.Brand

java.lang.Object
  extended by java.lang.Enum<WebUserAgentProduct.Brand>
      extended by com.guiseframework.platform.web.WebUserAgentProduct.Brand
All Implemented Interfaces:
BrandedProduct.Brand, java.io.Serializable, java.lang.Comparable<WebUserAgentProduct.Brand>
Enclosing interface:
WebUserAgentProduct

public static enum WebUserAgentProduct.Brand
extends java.lang.Enum<WebUserAgentProduct.Brand>
implements BrandedProduct.Brand

The brand of the web user agent.


Enum Constant Summary
ALEXA
          Alexa user agent.
BAIDU
          The Baidu spider.
FIREFOX
          The Firefox browser.
GIGABOT
          The Gigabot spider.
GOOGLEBOT
          The Googlebot spider.
GOOGLEBOT_IMAGE
          The Googlebot Image spider.
INTERNET_EXPLORER
          The Microsoft Internet Explorer browser.
MOZILLA
          A general Mozilla browser.
MSNBOT
          The MSNbot spider.
OPERA
          The Opera browser.
SAFARI
          The Safari browser.
SCOOTER
          The AltaVista Scooter spider.
W3C_VALIDATOR
          The W3C Validator user agent.
WGET
          The WGET user agent.
YAHOO_MMCRAWLER
          The Yahoo! MMCrawler spider.
 
Method Summary
static WebUserAgentProduct.Brand getBrand(java.lang.String userAgentName)
          Retrieves a brand from a given user agent name.
static WebUserAgentProduct.Brand valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static WebUserAgentProduct.Brand[] 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

ALEXA

public static final WebUserAgentProduct.Brand ALEXA
Alexa user agent.


BAIDU

public static final WebUserAgentProduct.Brand BAIDU
The Baidu spider.


FIREFOX

public static final WebUserAgentProduct.Brand FIREFOX
The Firefox browser.


GIGABOT

public static final WebUserAgentProduct.Brand GIGABOT
The Gigabot spider.


GOOGLEBOT

public static final WebUserAgentProduct.Brand GOOGLEBOT
The Googlebot spider.


GOOGLEBOT_IMAGE

public static final WebUserAgentProduct.Brand GOOGLEBOT_IMAGE
The Googlebot Image spider.


INTERNET_EXPLORER

public static final WebUserAgentProduct.Brand INTERNET_EXPLORER
The Microsoft Internet Explorer browser.


MOZILLA

public static final WebUserAgentProduct.Brand MOZILLA
A general Mozilla browser.


MSNBOT

public static final WebUserAgentProduct.Brand MSNBOT
The MSNbot spider.


OPERA

public static final WebUserAgentProduct.Brand OPERA
The Opera browser.


SAFARI

public static final WebUserAgentProduct.Brand SAFARI
The Safari browser.


SCOOTER

public static final WebUserAgentProduct.Brand SCOOTER
The AltaVista Scooter spider.


W3C_VALIDATOR

public static final WebUserAgentProduct.Brand W3C_VALIDATOR
The W3C Validator user agent.


WGET

public static final WebUserAgentProduct.Brand WGET
The WGET user agent.


YAHOO_MMCRAWLER

public static final WebUserAgentProduct.Brand YAHOO_MMCRAWLER
The Yahoo! MMCrawler spider.

Method Detail

values

public static WebUserAgentProduct.Brand[] 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 (WebUserAgentProduct.Brand c : WebUserAgentProduct.Brand.values())
    System.out.println(c);

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

valueOf

public static WebUserAgentProduct.Brand 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

getBrand

public static WebUserAgentProduct.Brand getBrand(java.lang.String userAgentName)
Retrieves a brand from a given user agent name.

Parameters:
userAgentName - The user agent name as reported by the HTTP header.
Returns:
The brand corresponding to the given user agent name, or null if the given user agent name was not recognized.
Throws:
java.lang.NullPointerException - if the given user agent name is null.


Copyright © 2005-2010 GlobalMentor, Inc. All Rights Reserved.