public static class BrowserVersion.BrowserVersionBuilder extends Object
Constructor and Description |
---|
BrowserVersionBuilder(BrowserVersion version)
Creates a new BrowserVersionBuilder using the given browser version
as template for the browser to be constructed.
|
public BrowserVersionBuilder(BrowserVersion version)
version
- the blueprintpublic BrowserVersion build()
public BrowserVersion.BrowserVersionBuilder setApplicationMinorVersion(String applicationMinorVersion)
applicationMinorVersion
- the applicationMinorVersion to setpublic BrowserVersion.BrowserVersionBuilder setApplicationName(String applicationName)
applicationName
- the applicationName to setpublic BrowserVersion.BrowserVersionBuilder setApplicationVersion(String applicationVersion)
applicationVersion
- the applicationVersion to setpublic BrowserVersion.BrowserVersionBuilder setVendor(String vendor)
vendor
- the vendor to setpublic BrowserVersion.BrowserVersionBuilder setApplicationCodeName(String applicationCodeName)
applicationCodeName
- the applicationCodeName to setpublic BrowserVersion.BrowserVersionBuilder setBrowserLanguage(String browserLanguage)
setAcceptLanguageHeader(String)
.browserLanguage
- the browserLanguage to setpublic BrowserVersion.BrowserVersionBuilder setOnLine(boolean onLine)
onLine
- the onLine to setpublic BrowserVersion.BrowserVersionBuilder setPlatform(String platform)
platform
- the platform to setpublic BrowserVersion.BrowserVersionBuilder setSystemTimezone(TimeZone systemTimezone)
systemTimezone
- the systemTimezone to setpublic BrowserVersion.BrowserVersionBuilder setUserAgent(String userAgent)
userAgent
- the userAgent to setpublic BrowserVersion.BrowserVersionBuilder setAcceptEncodingHeader(String acceptEncodingHeader)
acceptEncodingHeader
- the Accept-Encoding
headerpublic BrowserVersion.BrowserVersionBuilder setAcceptLanguageHeader(String acceptLanguageHeader)
acceptLanguageHeader
- the Accept-Language
headerpublic BrowserVersion.BrowserVersionBuilder setHtmlAcceptHeader(String htmlAcceptHeader)
htmlAcceptHeader
- the Accept
header to be used when retrieving pagespublic BrowserVersion.BrowserVersionBuilder setImgAcceptHeader(String imgAcceptHeader)
imgAcceptHeader
- the Accept
header to be used when retrieving imagespublic BrowserVersion.BrowserVersionBuilder setCssAcceptHeader(String cssAcceptHeader)
cssAcceptHeader
- the Accept
header to be used when retrieving pagespublic BrowserVersion.BrowserVersionBuilder setScriptAcceptHeader(String scriptAcceptHeader)
scriptAcceptHeader
- the Accept
header to be used when retrieving scriptspublic BrowserVersion.BrowserVersionBuilder setXmlHttpRequestAcceptHeader(String xmlHttpRequestAcceptHeader)
xmlHttpRequestAcceptHeader
- the Accept
header to be used when
performing XMLHttpRequestspublic BrowserVersion.BrowserVersionBuilder setSecClientHintUserAgentHeader(String secClientHintUserAgentHeader)
secClientHintUserAgentHeader
- the sec-ch-ua
header valuepublic BrowserVersion.BrowserVersionBuilder setSecClientHintUserAgentPlatformHeader(String secClientHintUserAgentPlatformHeader)
secClientHintUserAgentPlatformHeader
- the sec-ch-ua-platform
header valueCopyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.