Class SharedStorageAccessParams
java.lang.Object
org.openqa.selenium.devtools.v137.storage.model.SharedStorageAccessParams
Bundles the parameters for shared storage access events whose
presence/absence can vary according to SharedStorageAccessType.
-
Constructor Summary
ConstructorsConstructorDescriptionSharedStorageAccessParams(Optional<String> scriptSourceUrl, Optional<String> dataOrigin, Optional<String> operationName, Optional<Boolean> keepAlive, Optional<SharedStoragePrivateAggregationConfig> privateAggregationConfig, Optional<String> serializedData, Optional<List<SharedStorageUrlWithMetadata>> urlsWithMetadata, Optional<String> urnUuid, Optional<String> key, Optional<String> value, Optional<Boolean> ignoreIfPresent, Optional<String> workletId, Optional<String> withLock, Optional<String> batchUpdateId, Optional<Integer> batchSize) -
Method Summary
Modifier and TypeMethodDescriptionNumber of modifier methods sent in batch.If the method has been called as part of a batchUpdate, then this number identifies the batch to which it belongs.String denoting "context-origin", "script-origin", or a custom origin to be used as the worklet's data origin.Whether or not to set an entry for a key if that key is already present.Whether or not to keep the worket alive for future run or selectURL calls.getKey()Key for a specific entry in an origin's shared storage.Name of the registered operation to be run.Configures the private aggregation options.Spec of the module script URL.The operation's serialized data in bytes (converted to a string).Array of candidate URLs' specs, along with any associated metadata.Spec of the URN:UUID generated for a selectURL call.getValue()Value for a specific entry in an origin's shared storage.Name of the lock to be acquired, if present.If the method is called on a worklet, or as part of a worklet script, it will have an ID for the associated worklet.
-
Constructor Details
-
SharedStorageAccessParams
public SharedStorageAccessParams(Optional<String> scriptSourceUrl, Optional<String> dataOrigin, Optional<String> operationName, Optional<Boolean> keepAlive, Optional<SharedStoragePrivateAggregationConfig> privateAggregationConfig, Optional<String> serializedData, Optional<List<SharedStorageUrlWithMetadata>> urlsWithMetadata, Optional<String> urnUuid, Optional<String> key, Optional<String> value, Optional<Boolean> ignoreIfPresent, Optional<String> workletId, Optional<String> withLock, Optional<String> batchUpdateId, Optional<Integer> batchSize)
-
-
Method Details
-
getScriptSourceUrl
Spec of the module script URL. Present only for SharedStorageAccessMethods: addModule and createWorklet. -
getDataOrigin
String denoting "context-origin", "script-origin", or a custom origin to be used as the worklet's data origin. Present only for SharedStorageAccessMethod: createWorklet. -
getOperationName
Name of the registered operation to be run. Present only for SharedStorageAccessMethods: run and selectURL. -
getKeepAlive
Whether or not to keep the worket alive for future run or selectURL calls. Present only for SharedStorageAccessMethods: run and selectURL. -
getPrivateAggregationConfig
Configures the private aggregation options. Present only for SharedStorageAccessMethods: run and selectURL. -
getSerializedData
The operation's serialized data in bytes (converted to a string). Present only for SharedStorageAccessMethods: run and selectURL. TODO(crbug.com/401011862): Consider updating this parameter to binary. -
getUrlsWithMetadata
Array of candidate URLs' specs, along with any associated metadata. Present only for SharedStorageAccessMethod: selectURL. -
getUrnUuid
Spec of the URN:UUID generated for a selectURL call. Present only for SharedStorageAccessMethod: selectURL. -
getKey
Key for a specific entry in an origin's shared storage. Present only for SharedStorageAccessMethods: set, append, delete, and get. -
getValue
Value for a specific entry in an origin's shared storage. Present only for SharedStorageAccessMethods: set and append. -
getIgnoreIfPresent
Whether or not to set an entry for a key if that key is already present. Present only for SharedStorageAccessMethod: set. -
getWorkletId
If the method is called on a worklet, or as part of a worklet script, it will have an ID for the associated worklet. Present only for SharedStorageAccessMethods: addModule, createWorklet, run, selectURL, and any other SharedStorageAccessMethod when the SharedStorageAccessScope is worklet. -
getWithLock
Name of the lock to be acquired, if present. Optionally present only for SharedStorageAccessMethods: batchUpdate, set, append, delete, and clear. -
getBatchUpdateId
If the method has been called as part of a batchUpdate, then this number identifies the batch to which it belongs. Optionally present only for SharedStorageAccessMethods: batchUpdate (required), set, append, delete, and clear. -
getBatchSize
Number of modifier methods sent in batch. Present only for SharedStorageAccessMethod: batchUpdate.
-