public class TusURLMemoryStore extends java.lang.Object implements TusURLStore
HashMap
. This functionality is used to allow resuming uploads. The
fingerprint is usually retrieved using TusUpload.getFingerprint()
.
Constructor and Description |
---|
TusURLMemoryStore() |
Modifier and Type | Method and Description |
---|---|
java.net.URL |
get(java.lang.String fingerprint)
Returns the corresponding Upload URL to a given fingerprint.
|
void |
remove(java.lang.String fingerprint)
Removes the corresponding entry to a fingerprint from the
TusURLMemoryStore . |
void |
set(java.lang.String fingerprint,
java.net.URL url)
Stores the upload's fingerprint and url.
|
public void set(java.lang.String fingerprint, java.net.URL url)
set
in interface TusURLStore
fingerprint
- An upload's fingerprint.url
- The corresponding upload URL.public java.net.URL get(java.lang.String fingerprint)
get
in interface TusURLStore
fingerprint
- An upload's fingerprint.public void remove(java.lang.String fingerprint)
TusURLMemoryStore
.remove
in interface TusURLStore
fingerprint
- An upload's fingerprint.