Class VHFileDescriptor

  • All Implemented Interfaces:

    public final class VHFileDescriptor
    extends Object
    implements de.uplanet.lucy.server.util.IVHFileDescriptor
    Holds the necessary information for the FileValueHolder.
    • Constructor Detail

      • VHFileDescriptor

        public VHFileDescriptor​(File p_file,
                                String p_strFileName,
                                String p_strContentType,
                                Date p_lastModified,
                                boolean p_bStreamingMode)
        p_file - The physical file
        p_strFileName - The file name
        p_strContentType - The content type of the file
        p_lastModified - The last modified date of the file
        p_bStreamingMode - Should be true for streaming, should normally be false, otherwise server must stream the file up to the web).
    • Method Detail

      • getFileName

        public String getFileName()
        Specified by:
        getFileName in interface de.uplanet.lucy.server.util.IVHFileDescriptor
        The name of the file.
      • getPath

        public String getPath()
        Specified by:
        getPath in interface de.uplanet.lucy.server.util.IVHFileDescriptor
        The path to the file.
      • getContentType

        public String getContentType()
        Specified by:
        getContentType in interface de.uplanet.lucy.server.util.IVHFileDescriptor
        The MIME content type.
      • isStreamingMode

        public boolean isStreamingMode()
        Specified by:
        isStreamingMode in interface de.uplanet.lucy.server.util.IVHFileDescriptor
      • getLastModified

        public Date getLastModified()
        Specified by:
        getLastModified in interface de.uplanet.lucy.server.util.IVHFileDescriptor
      • getFile

        public File getFile()
        Specified by:
        getFile in interface de.uplanet.lucy.server.util.IVHFileDescriptor