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 BrowserProfileprofileprivate final LongcreateTimeprivate final PathuserDataDirprivate final <Error class: unknown class>displayprivate final PathcontextDirprivate final Fingerprintfingerprintpublic final static BrowserId.CompanionCompanion
-
Method Summary
Modifier and Type Method Description final BrowserTypegetBrowserType()final BrowserProfilegetProfile()The browser profile of the browser. final LonggetCreateTime()The creation time of the browser. final PathgetUserDataDir()final <Error class: unknown class>getDisplay()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(BrowserProfile profile)
The constructor of the browser id.- Parameters:
profile- The browser profile 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()
-
getProfile
final BrowserProfile getProfile()
The browser profile of the browser.
-
getCreateTime
final Long getCreateTime()
The creation time of the browser.
-
getUserDataDir
final Path getUserDataDir()
-
getDisplay
final <Error class: unknown class> 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()
-
-
-
-