public interface Profile
For working with this info each profile provides different services such as plugins, spellchecker configurations, cookie store, etc.
Profiles are managed by the separate engine service.
The default profile is initialized when the engine is created. It can not be removed.
Any attempt to use an already removed profile or profile whose engine is closed will
lead to the IllegalStateException
.
Modifier and Type | Method and Description |
---|---|
java.util.List<Browser> |
browsers()
Returns an immutable list of alive
Browser instances including child popup browsers
for this profile or an empty list if the profile does not have any alive Browser . |
CookieStore |
cookieStore()
Returns the cookie store that allows managing cookies.
|
CreditCards |
creditCards()
Returns a service that allows managing credit cards.
|
Downloads |
downloads()
Returns a service that allows managing downloads.
|
Engine |
engine()
Returns the engine for this profile.
|
HttpAuthCache |
httpAuthCache()
Returns a service for working with HTTP authentication cache.
|
HttpCache |
httpCache()
Returns a service for working with HTTP cache.
|
boolean |
isDefault()
Returns
true if this profile is default. |
boolean |
isIncognito()
Returns
true if this profile is in incognito mode. |
MediaCasting |
mediaCasting()
Returns a service that provides access to all the required media casting services.
|
java.lang.String |
name()
Returns a name of this profile.
|
Network |
network()
Returns a service that allows working with network.
|
Browser |
newBrowser()
Creates a new
Browser instance under this profile and navigates it to the
"about:blank" web page within the Navigation.defaultTimeoutInSeconds() . |
PasswordStore |
passwordStore()
Returns a service for working with the password store.
|
java.lang.String |
path()
Returns a system path to the folder with the profiles`s info.
|
Permissions |
permissions()
Returns a service that allows managing permissions.
|
Plugins |
plugins()
Returns a service that allows configuring plugins.
|
ProfilePreferences |
preferences()
Returns the preferences for this profile.
|
Proxy |
proxy()
Returns a service that allows working with proxy.
|
SpellChecker |
spellChecker()
Returns a service that allows working with spell checking functionality.
|
UserDataProfiles |
userDataProfiles()
Returns a service that allows managing the user data profiles.
|
ZoomLevels |
zoomLevels()
Returns a service that allows working with zoom.
|
Engine engine()
Browser newBrowser()
Browser
instance under this profile and navigates it to the
"about:blank" web page within the Navigation.defaultTimeoutInSeconds()
.Browser
instanceTimeoutException
- if the engine failed to create a browser instance within the timeoutNavigationException
- if the navigation to the "about:blank" has failedObjectClosedException
- if the profile is deleted or its engine is closedjava.util.List<Browser> browsers()
Browser
instances including child popup browsers
for this profile or an empty list if the profile does not have any alive Browser
.java.lang.String path()
ObjectClosedException
- if the profile is deleted or its engine is closedboolean isIncognito()
true
if this profile is in incognito mode.ObjectClosedException
- if the profile is deleted or its engine is closedboolean isDefault()
true
if this profile is default.ObjectClosedException
- if the profile is deleted or its engine is closedjava.lang.String name()
ObjectClosedException
- if the profile is deleted or its engine is closedZoomLevels zoomLevels()
Plugins plugins()
Proxy proxy()
Network network()
SpellChecker spellChecker()
CookieStore cookieStore()
PasswordStore passwordStore()
HttpCache httpCache()
HttpAuthCache httpAuthCache()
Downloads downloads()
Permissions permissions()
ProfilePreferences preferences()
UserDataProfiles userDataProfiles()
CreditCards creditCards()
MediaCasting mediaCasting()