public class Urls
extends java.lang.Object
Constructor and Description |
---|
Urls() |
Modifier and Type | Method and Description |
---|---|
static java.net.URI |
apiFile(java.lang.String fileId)
Creates a URL to a file resource.
|
static java.net.URI |
apiFiles()
Creates a URL to the file collection resource.
|
static java.net.URI |
apiFileStorage(java.lang.String fileId)
Creates a URL to the storage action for a file (saving the file).
|
static java.net.URI |
apiProject()
Creates a URL to a project resource.
|
static java.net.URI |
cdn(CdnPathBuilder builder)
Creates a full CDN URL with a CDN path builder.
|
static java.net.URI |
uploadBase()
Creates a URL to the file upload endpoint.
|
static java.net.URI |
uploadFromUrl(java.lang.String sourceUrl,
java.lang.String pubKey,
java.lang.String store)
Creates a URL for URL upload.
|
static java.net.URI |
uploadFromUrlStatus(java.lang.String token)
Creates a URL for URL upload status (e.g. progress).
|
public static java.net.URI apiProject()
Client
public static java.net.URI apiFile(java.lang.String fileId)
fileId
- File UUIDClient
public static java.net.URI apiFileStorage(java.lang.String fileId)
fileId
- File UUIDClient
public static java.net.URI apiFiles()
Client
public static java.net.URI cdn(CdnPathBuilder builder)
builder
- Configured CDN path builderpublic static java.net.URI uploadBase()
FileUploader
public static java.net.URI uploadFromUrl(java.lang.String sourceUrl, java.lang.String pubKey, java.lang.String store)
sourceUrl
- URL to upload frompubKey
- Public keystore
- Store the file upon uploading.UrlUploader
public static java.net.URI uploadFromUrlStatus(java.lang.String token)
token
- Token, received after a URL upload requestUrlUploader