MCPcopy Index your code
hub / github.com/HtmlUnit/htmlunit / getStore

Method getStore

src/main/java/org/htmlunit/StorageHolder.java:54–59  ·  view source on GitHub ↗

Gets the store of the give type for the page. @param storageType the type @param page the page @return the store

(final Type storageType, final Page page)

Source from the content-addressed store, hash-verified

52 * @return the store
53 */
54 public Map<String, String> getStore(final Type storageType, final Page page) {
55 return switch (storageType) {
56 case LOCAL_STORAGE -> getLocalStorage(page.getUrl());
57 case SESSION_STORAGE -> getSessionStorage(page.getEnclosingWindow());
58 };
59 }
60
61 /**
62 * Gets the local storage (map).

Callers 3

GridFilters.jsFile · 0.80
getStorageMethod · 0.80

Calls 4

getLocalStorageMethod · 0.95
getSessionStorageMethod · 0.95
getUrlMethod · 0.65
getEnclosingWindowMethod · 0.65

Tested by

no test coverage detected