Package org.webkitgtk
Class WebsiteDataManager.Builder<B extends WebsiteDataManager.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.webkitgtk.WebsiteDataManager.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
WebsiteDataManager
public static class WebsiteDataManager.Builder<B extends WebsiteDataManager.Builder<B>>
extends GObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theWebsiteDataManagerobject.setBaseCacheDirectory(String baseCacheDirectory) The base directory for caches.setBaseDataDirectory(String baseDataDirectory) The base directory for website data.setIsEphemeral(boolean isEphemeral) Whether theWebKitWebsiteDataManageris ephemeral.setOriginStorageRatio(double originStorageRatio) The percentage of volume space that can be used for data storage for every domain.setTotalStorageRatio(double totalStorageRatio) The percentage of volume space that can be used for data storage for all domains.Methods inherited from class org.gnome.gobject.GObject.Builder
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theWebsiteDataManagerobject. This will callGObject.withProperties(org.gnome.glib.Type, java.lang.String[], org.gnome.gobject.Value[])to create a new GObject instance, which is then cast toWebsiteDataManager.- Overrides:
buildin classGObject.Builder<B extends WebsiteDataManager.Builder<B>>- Returns:
- a new instance of
WebsiteDataManagerwith the properties that were set in the Builder object.
-
setBaseCacheDirectory
-
setBaseDataDirectory
-
setIsEphemeral
Whether theWebKitWebsiteDataManageris ephemeral. An ephemeralWebKitWebsiteDataManagerhandles all websites data as non-persistent, and nothing will be written to the client storage. Note that if you create an ephemeralWebKitWebsiteDataManagerall other construction parameters to configure data directories will be ignored.- Parameters:
isEphemeral- the value for theis-ephemeralproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.16
-
setOriginStorageRatio
The percentage of volume space that can be used for data storage for every domain. If the maximum storage is reached the storage request will fail with a QuotaExceededError exception. A value of 0.0 means that data storage is not allowed. A value of -1.0, which is the default, means WebKit will use the default quota (1 GiB).- Parameters:
originStorageRatio- the value for theorigin-storage-ratioproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.42
-
setTotalStorageRatio
The percentage of volume space that can be used for data storage for all domains. If the maximum storage is reached the eviction will happen. A value of 0.0 means that data storage is not allowed. A value of -1.0, which is the default, means there's no limit for the total storage.- Parameters:
totalStorageRatio- the value for thetotal-storage-ratioproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.42
-