public abstract class UploadIdFactory extends Object
| Constructor and Description |
|---|
UploadIdFactory() |
| Modifier and Type | Method and Description |
|---|---|
abstract UploadId |
createId()
Create a new unique upload ID
|
protected abstract Serializable |
getIdValueIfValid(String extractedUrlId)
Transform the extracted path ID value to a value to use for the upload ID object.
|
String |
getUploadURI()
Return the URI of the main tus upload endpoint.
|
protected Pattern |
getUploadUriPattern()
Build and retrieve the Upload URI regex pattern
|
UploadId |
readUploadId(String url)
Read the upload identifier from the given URL.
|
void |
setUploadURI(String uploadURI)
Set the URI under which the main tus upload endpoint is hosted.
|
public void setUploadURI(String uploadURI)
uploadURI - The URI of the main tus upload endpointpublic String getUploadURI()
public UploadId readUploadId(String url)
url - The URL provided by the clientpublic abstract UploadId createId()
protected abstract Serializable getIdValueIfValid(String extractedUrlId)
extractedUrlId - The ID extracted from the URLprotected Pattern getUploadUriPattern()
Copyright © 2019. All rights reserved.