Package io.guise.framework.platform.web
Enum WebUserAgentProduct.Brand
- All Implemented Interfaces:
BrandedProduct.Brand
,Serializable
,Comparable<WebUserAgentProduct.Brand>
- Enclosing interface:
- WebUserAgentProduct
public static enum WebUserAgentProduct.Brand
extends Enum<WebUserAgentProduct.Brand>
implements BrandedProduct.Brand
The brand of the web user agent.
-
Enum Constant Summary
Enum ConstantDescriptionAlexa user agent.The Baidu spider.The Firefox browser.The Gigabot spider.The Googlebot spider.The Googlebot Image spider.The Microsoft Internet Explorer browser.A general Mozilla browser.The MSNbot spider.The Opera browser.The Safari browser.The AltaVista Scooter spider.The W3C Validator user agent.The WGET user agent.The Yahoo! MMCrawler spider. -
Method Summary
Modifier and TypeMethodDescriptionstatic WebUserAgentProduct.Brand
Retrieves a brand from a given user agent name.static WebUserAgentProduct.Brand
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 Details
-
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 Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getBrand
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:
NullPointerException
- if the given user agent name isnull
.
-