Class FileInfo


  • public class FileInfo
    extends Object
    An immutable packet of information about an uploaded file, with a builder class to permit incremental construction.
    • Method Detail

      • instanceFromAliasUrl

        public 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. Otherwise, return null.
      • instanceFromBytestreamUri

        public static FileInfo instanceFromBytestreamUri​(WebappDaoFactory webappDaoFactory,
                                                         String bytestreamUri)
        If this URI represents a file bytestream, find its surrogate and get its info. Otherwise, return null.
      • instanceFromSurrogateUri

        public static FileInfo instanceFromSurrogateUri​(WebappDaoFactory webappDaoFactory,
                                                        String uri)
        If this URI represents a file surrogate, get its info. Otherwise, return null.
      • getUri

        public String getUri()
      • getFilename

        public String getFilename()
      • getMimeType

        public String getMimeType()
      • getBytestreamUri

        public String getBytestreamUri()
      • getBytestreamAliasUrl

        public String getBytestreamAliasUrl()