public class FileInfo extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FileInfo.Builder
A builder class allows us to supply the values one at a time, and then
freeze them into an immutable object.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBytestreamAliasUrl() |
String |
getBytestreamUri() |
String |
getFilename() |
String |
getMimeType() |
String |
getUri() |
static FileInfo |
instanceFromAliasUrl(WebappDaoFactory webappDaoFactory,
String path,
javax.servlet.ServletContext ctx)
If this request URL represents a BytestreamAliasURL, find the bytestream
URI, find the surrogate, and get the info.
|
static FileInfo |
instanceFromBytestreamUri(WebappDaoFactory webappDaoFactory,
String bytestreamUri)
If this URI represents a file bytestream, find its surrogate and get its
info.
|
static FileInfo |
instanceFromSurrogateUri(WebappDaoFactory webappDaoFactory,
String uri)
If this URI represents a file surrogate, get its info.
|
String |
toString() |
public static FileInfo instanceFromAliasUrl(WebappDaoFactory webappDaoFactory, String path, javax.servlet.ServletContext ctx)
public static FileInfo instanceFromBytestreamUri(WebappDaoFactory webappDaoFactory, String bytestreamUri)
public static FileInfo instanceFromSurrogateUri(WebappDaoFactory webappDaoFactory, String uri)
public String getUri()
public String getFilename()
public String getMimeType()
public String getBytestreamUri()
public String getBytestreamAliasUrl()
Copyright © 2022. All rights reserved.