Interface TusURLStore

All Known Implementing Classes:
TusURLMemoryStore

public interface TusURLStore
Implementations of this interface are used to map an upload's fingerprint with the corresponding upload URL. This functionality is used to allow resuming uploads. The fingerprint is usually retrieved using TusUpload.getFingerprint().
  • Method Summary

    Modifier and Type
    Method
    Description
    get(String fingerprint)
    Retrieve an upload's URL for a fingerprint.
    void
    remove(String fingerprint)
    Remove an entry from the store.
    void
    set(String fingerprint, URL url)
    Store a new fingerprint and its upload URL.
  • Method Details

    • set

      void set(String fingerprint, URL url)
      Store a new fingerprint and its upload URL.
      Parameters:
      fingerprint - An upload's fingerprint.
      url - The corresponding upload URL.
    • get

      URL get(String fingerprint)
      Retrieve an upload's URL for a fingerprint. If no matching entry is found this method will return null.
      Parameters:
      fingerprint - An upload's fingerprint.
      Returns:
      The corresponding upload URL.
    • remove

      void remove(String fingerprint)
      Remove an entry from the store. Calling get(String) with the same fingerprint will return null. If no entry exists for this fingerprint no exception should be thrown.
      Parameters:
      fingerprint - An upload's fingerprint.