@Deprecated public class UserAgent extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_BROWSER_VERSION
Deprecated.
|
static String |
DEFAULT_CRAWLER_VERSION
Deprecated.
|
| Constructor and Description |
|---|
UserAgent(String agentName,
String emailAddress,
String webAddress)
Deprecated.
Set user agent characteristics
|
UserAgent(String agentName,
String emailAddress,
String webAddress,
String browserVersion)
Deprecated.
Set user agent characteristics
|
UserAgent(String agentName,
String emailAddress,
String webAddress,
String browserVersion,
String crawlerVersion)
Deprecated.
Set user agent characteristics
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAgentName()
Deprecated.
Obtain the just the user agent name
|
String |
getUserAgentString()
Deprecated.
Obtain a String representing the user agent characteristics.
|
public static final String DEFAULT_BROWSER_VERSION
public static final String DEFAULT_CRAWLER_VERSION
public UserAgent(String agentName, String emailAddress, String webAddress)
agentName - an agent name string to associate with the crawleremailAddress - an agent email address string to associate with the crawlerwebAddress - a Web address string to associate with the crawlerpublic UserAgent(String agentName, String emailAddress, String webAddress, String browserVersion)
agentName - an agent name string to associate with the crawleremailAddress - an agent email address string to associate with the crawlerwebAddress - a Web address string to associate with the crawlerbrowserVersion - a browser version to mimicpublic UserAgent(String agentName, String emailAddress, String webAddress, String browserVersion, String crawlerVersion)
agentName - an agent name string to associate with the crawleremailAddress - an agent email address string to associate with the crawlerwebAddress - a Web address string to associate with the crawlerbrowserVersion - a browser version to mimiccrawlerVersion - the version of your crawler/crawl agentCopyright © 2009–2016 Crawler-Commons. All rights reserved.