public interface Agent
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. Trinidad 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).
Modifier and Type | Field and Description |
---|---|
static String |
AGENT_BLACKBERRY
Constant for BlackBerry Browser agent.
|
static String |
AGENT_EMAIL
Constant for email agent.
|
static String |
AGENT_GECKO
Constant for Gecko agent.
|
static String |
AGENT_GENERICPDA
Constant for basic HTML (without JavaScript) Browser agent.
|
static String |
AGENT_GOOGLEBOT
Constant for Google web crawler
|
static String |
AGENT_IE
Constant for Internet Explorer agent
|
static String |
AGENT_KONQUEROR
Constant for Konqueror agent
|
static String |
AGENT_MSNBOT
Constant for MSN web crawler (currently used by Bing and Yahoo)
|
static String |
AGENT_NOKIA_S60
Constant for Symbian Nokia S60 agent.
|
static String |
AGENT_OPERA
Constant for Opera agent.
|
static String |
AGENT_ORACLE_SES
Constant for Oracle SES web crawler
|
static String |
AGENT_UNKNOWN
Constant for when the agent is not supported or not recognized
|
static String |
AGENT_VERSION_UNKNOWN
Constant for Unknown Agent version
|
static String |
AGENT_WEBKIT
Constant for Apple Webkit agent.
|
static String |
MAKE_MODEL_UNKNOWN
Constant for Unknown make model version
|
static String |
PLATFORM_BLACKBERRY
Constant for blackberry platform
|
static String |
PLATFORM_GENERICPDA
Constant for generic PDA device browser
|
static String |
PLATFORM_IPHONE
Constant for the iOS (iPhone/iPod touch/iPad) platform
|
static String |
PLATFORM_LINUX
Constant for linux platform
|
static String |
PLATFORM_MAC
Deprecated.
|
static String |
PLATFORM_MACOS
Constant for MacOS platform
|
static String |
PLATFORM_NOKIA_S60
/**
Constant for Nokia S60 platform
|
static String |
PLATFORM_PALM
Constant for plam platform
|
static String |
PLATFORM_PPC
Constant for pocket pc platform
|
static String |
PLATFORM_SOLARIS
Constant for solaris platform
|
static String |
PLATFORM_UNKNOWN
Constant for Unknown platform
|
static String |
PLATFORM_VERSION_UNKNOWN
Constant for Unknown platform version
|
static String |
PLATFORM_WINDOWS
Constant for windows platform
|
static Object |
TYPE_DESKTOP
Constant for desktop devices
|
static Object |
TYPE_PDA
Constant for handheld sized devices (Pocket-PC, Palm)
|
static Object |
TYPE_PHONE
Constant for Phone sized devices
|
static Object |
TYPE_TELNET
Constant for telnet device type
|
static Object |
TYPE_UNKNOWN
Constant for Unknown device type
|
static Object |
TYPE_WEBCRAWLER
Constant for Web Crawlers
|
Modifier and Type | Method and Description |
---|---|
String |
getAgentName() |
String |
getAgentVersion() |
Map<Object,Object> |
getCapabilities() |
String |
getHardwareMakeModel() |
String |
getPlatformName() |
String |
getPlatformVersion() |
Object |
getType() |
static final Object TYPE_UNKNOWN
static final Object TYPE_TELNET
static final Object TYPE_DESKTOP
static final Object TYPE_PDA
static final Object TYPE_PHONE
static final Object TYPE_WEBCRAWLER
static final String PLATFORM_UNKNOWN
static final String PLATFORM_WINDOWS
static final String PLATFORM_LINUX
static final String PLATFORM_MACOS
@Deprecated static final String PLATFORM_MAC
static final String PLATFORM_IPHONE
static final String PLATFORM_PALM
static final String PLATFORM_SOLARIS
static final String PLATFORM_PPC
static final String PLATFORM_BLACKBERRY
static final String PLATFORM_NOKIA_S60
static final String PLATFORM_GENERICPDA
static final String AGENT_MSNBOT
static final String AGENT_GOOGLEBOT
static final String AGENT_ORACLE_SES
static final String PLATFORM_VERSION_UNKNOWN
static final String AGENT_UNKNOWN
static final String AGENT_KONQUEROR
static final String AGENT_IE
static final String AGENT_GECKO
static final String AGENT_OPERA
static final String AGENT_EMAIL
static final String AGENT_WEBKIT
static final String AGENT_BLACKBERRY
static final String AGENT_NOKIA_S60
static final String AGENT_GENERICPDA
static final String AGENT_VERSION_UNKNOWN
static final String MAKE_MODEL_UNKNOWN
Object getType()
TYPE_UNKNOWN
if not available.
String getAgentName()
null
if not available.
String getAgentVersion()
null
if not available.String getPlatformName()
null
if not available.
String getPlatformVersion()
null
if not available.String getHardwareMakeModel()
null
if not available.
Map<Object,Object> getCapabilities()
Copyright © 2001-2016 The Apache Software Foundation. All Rights Reserved.