Module org.htmlunit
Package org.htmlunit

Class BlobUrlStore

java.lang.Object
org.htmlunit.BlobUrlStore

public class BlobUrlStore extends Object
The user-agent-wide blob URL store defined by Blob URL Store.
Author:
Lai Quang Duong, Ronald Brill
  • Constructor Details

    • BlobUrlStore

      public BlobUrlStore()
  • Method Details

    • put

      public void put(String blobUrl, Blob object, Page owningPage)
      Adds an entry.
      Parameters:
      blobUrl - the generated blob: URL
      object - the Blob (or File) the URL refers to
      owningPage - the page that created the URL
    • resolve

      public Blob resolve(String blobUrl)
      Parameters:
      blobUrl - the blob: URL to resolve
      Returns:
      the stored Blob, or null if there is no entry
    • remove

      public void remove(String blobUrl)
      Removes an entry.
      Parameters:
      blobUrl - the blob: URL to remove
    • clear

      public void clear()
      INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
      Removes all entries.