Package io.guise.framework.platform.web
Enum WebUserAgentProduct.Brand
- java.lang.Object
-
- java.lang.Enum<WebUserAgentProduct.Brand>
-
- io.guise.framework.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
Enum Constants Enum Constant Description 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
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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 namejava.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 "User-Agent" 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 isnull
.
-
-