Class BrowserId
-
- All Implemented Interfaces:
-
kotlin.Comparable
public final class BrowserId implements Comparable<BrowserId>
The unique browser id.
Every browser instance have a unique fingerprint and a context directory.
The fingerprint is used to identify the browser, and the context directory is used to store the browser's data.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classBrowserId.Companion
-
Field Summary
Fields Modifier and Type Field Description private final BrowserTypebrowserTypeprivate final PrivacyAgentprivacyAgentprivate final LongcreateTimeprivate final PathuserDataDirprivate final Stringdisplayprivate final PathcontextDirprivate final Fingerprintfingerprintpublic final static BrowserId.CompanionCompanion
-
Method Summary
Modifier and Type Method Description final BrowserTypegetBrowserType()final PrivacyAgentgetPrivacyAgent()The privacy agent of the browser. final LonggetCreateTime()The creation time of the browser. final PathgetUserDataDir()final StringgetDisplay()final PathgetContextDir()The directory to store the browser's data. final FingerprintgetFingerprint()The fingerprint to identify the browser. final BooleanhasProxy()final UnitsetProxy(String schema, String hostPort, String username, String password)final UnitsetProxy(ProxyEntry proxy)final UnitunsetProxy()Booleanequals(Object other)IntegerhashCode()IntegercompareTo(BrowserId other)StringtoString()-
-
Constructor Detail
-
BrowserId
BrowserId(PrivacyAgent privacyAgent)
The constructor of the browser id.- Parameters:
privacyAgent- The privacy agent of the browser.
-
BrowserId
BrowserId(Path contextDir, BrowserType browserType)
The constructor of the browser id.- Parameters:
contextDir- The context directory of the browser.browserType- The browser type of the browser.
-
BrowserId
BrowserId(Path contextDir, Fingerprint fingerprint)
-
-
Method Detail
-
getBrowserType
final BrowserType getBrowserType()
-
getPrivacyAgent
final PrivacyAgent getPrivacyAgent()
The privacy agent of the browser.
-
getCreateTime
final Long getCreateTime()
The creation time of the browser.
-
getUserDataDir
final Path getUserDataDir()
-
getDisplay
final String getDisplay()
-
getContextDir
final Path getContextDir()
The directory to store the browser's data.
-
getFingerprint
final Fingerprint getFingerprint()
The fingerprint to identify the browser.
-
unsetProxy
final Unit unsetProxy()
-
-
-
-