Package io.tus.java.client
Interface TusURLStore
-
- All Known Implementing Classes:
TusURLMemoryStore
public interface TusURLStoreImplementations 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 usingTusUpload.getFingerprint().
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.net.URLget(java.lang.String fingerprint)Retrieve an upload's URL for a fingerprint.voidremove(java.lang.String fingerprint)Remove an entry from the store.voidset(java.lang.String fingerprint, java.net.URL url)Store a new fingerprint and its upload URL.
-
-
-
Method Detail
-
set
void set(java.lang.String fingerprint, java.net.URL url)Store a new fingerprint and its upload URL.- Parameters:
fingerprint- An upload's fingerprint.url- The corresponding upload URL.
-
get
java.net.URL get(java.lang.String fingerprint)
Retrieve an upload's URL for a fingerprint. If no matching entry is found this method will returnnull.- Parameters:
fingerprint- An upload's fingerprint.- Returns:
- The corresponding upload URL.
-
remove
void remove(java.lang.String fingerprint)
Remove an entry from the store. Callingget(String)with the same fingerprint will returnnull. If no entry exists for this fingerprint no exception should be thrown.- Parameters:
fingerprint- An upload's fingerprint.
-
-