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

Method getStorage

src/main/java/org/htmlunit/javascript/host/Window.java:626–635  ·  view source on GitHub ↗

Gets the storage of the specified type. @param storageType the type @return the storage

(final Type storageType)

Source from the content-addressed store, hash-verified

624 * @return the storage
625 */
626 public Storage getStorage(final Type storageType) {
627 return storages_.computeIfAbsent(storageType,
628 k -> {
629 final WebWindow webWindow = getWebWindow();
630 final Map<String, String> store = webWindow.getWebClient().getStorageHolder().
631 getStore(storageType, webWindow.getEnclosedPage());
632 return new Storage(this, store);
633 }
634 );
635 }
636
637 /**
638 * Returns the {@code location} property.

Callers 10

getLocalStorageMethod · 0.95
getSessionStorageMethod · 0.95
prototype.jsFile · 0.80
prototype.jsFile · 0.80
event_test.jsFile · 0.80
dom_test.jsFile · 0.80
undoPositionedFunction · 0.80
makeClippingFunction · 0.80
undoClippingFunction · 0.80
dom_test.jsFile · 0.80

Calls 5

getWebWindowMethod · 0.95
getWebClientMethod · 0.95
getEnclosedPageMethod · 0.95
getStoreMethod · 0.80
getStorageHolderMethod · 0.80

Tested by

no test coverage detected