public class File
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
CdnPathBuilder |
cdnPath()
Creates a CDN path builder for this file.
|
File |
delete()
Deletes this file from Uploadcare.
|
java.lang.String |
getFileId() |
java.lang.String |
getMimeType() |
java.lang.String |
getOriginalFilename() |
java.net.URI |
getOriginalFileUrl() |
java.util.Date |
getRemoved() |
int |
getSize() |
java.util.Date |
getUploadDate() |
java.net.URI |
getUrl()
Returns the unique REST URL for this resource.
|
boolean |
hasOriginalFileUrl() |
boolean |
isRemoved() |
boolean |
isStored() |
File |
save()
Saves this file on Uploadcare (marks it to be kept).
|
File |
update()
Refreshes file data from Uploadcare.
|
public java.lang.String getFileId()
public boolean isStored()
public java.lang.String getMimeType()
public boolean hasOriginalFileUrl()
public java.net.URI getOriginalFileUrl()
public java.lang.String getOriginalFilename()
public boolean isRemoved()
public java.util.Date getRemoved()
public int getSize()
public java.util.Date getUploadDate()
public java.net.URI getUrl()
public File update()
File
instance,
but creates a new one.public File delete()
File
instance,
but creates a new one.public File save()
File
instance,
but creates a new one.public CdnPathBuilder cdnPath()
Urls.cdn(CdnPathBuilder)