Interface WebFile


public interface WebFile
A WebFile contains binary data that can be revisioned. There is always a current working version of the content. There can be zero or more revisions of the content. Each revision is identified by an ID that is unique within the revision history of this WebFile.
  • Method Details

    • getPath

      String getPath()
      Returns:
      the absolute path to this WebFile, starting at the WebFiles root. The path always starts with a slash, and the path elements are also separated by slashes.
    • getName

      String getName()
      Returns:
      the name of this WebFile, i.e. the last element of the path.
    • getEncoding

      String getEncoding()
      Returns:
      the encoding of this content.
    • getLastModified

      Calendar getLastModified()
      Returns:
      the last time this content has changed.
    • getMimeType

      String getMimeType()
      Returns:
      the MIME type of this content.
    • getBinary

      Binary getBinary()
      Returns:
      the binary data of this content.