Package de.uplanet.lucy.server.util
Class VHFileDescriptor
- java.lang.Object
-
- de.uplanet.lucy.server.util.VHFileDescriptor
-
- All Implemented Interfaces:
de.uplanet.lucy.server.util.IVHFileDescriptor
public final class VHFileDescriptor extends Object implements de.uplanet.lucy.server.util.IVHFileDescriptor
Holds the necessary information for theFileValueHolder.
-
-
Constructor Summary
Constructors Constructor Description VHFileDescriptor(File p_file, String p_strFileName, String p_strContentType, Date p_lastModified, boolean p_bStreamingMode)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContentType()FilegetFile()StringgetFileName()static VHFileDescriptorgetInstance(File p_file)static VHFileDescriptorgetInstance(String p_strPath)DategetLastModified()StringgetPath()booleanisStreamingMode()
-
-
-
Constructor Detail
-
VHFileDescriptor
public VHFileDescriptor(File p_file, String p_strFileName, String p_strContentType, Date p_lastModified, boolean p_bStreamingMode)
- Parameters:
p_file- The physical filep_strFileName- The file namep_strContentType- The content type of the filep_lastModified- The last modified date of the filep_bStreamingMode- Should betruefor streaming, should normally befalse, otherwise server must stream the file up to the web).
-
-
Method Detail
-
getFileName
public String getFileName()
- Specified by:
getFileNamein interfacede.uplanet.lucy.server.util.IVHFileDescriptor- Returns:
- The name of the file.
-
getPath
public String getPath()
- Specified by:
getPathin interfacede.uplanet.lucy.server.util.IVHFileDescriptor- Returns:
- The path to the file.
-
getContentType
public String getContentType()
- Specified by:
getContentTypein interfacede.uplanet.lucy.server.util.IVHFileDescriptor- Returns:
- The MIME content type.
-
isStreamingMode
public boolean isStreamingMode()
- Specified by:
isStreamingModein interfacede.uplanet.lucy.server.util.IVHFileDescriptor
-
getLastModified
public Date getLastModified()
- Specified by:
getLastModifiedin interfacede.uplanet.lucy.server.util.IVHFileDescriptor
-
getInstance
public static final VHFileDescriptor getInstance(String p_strPath)
-
getInstance
public static final VHFileDescriptor getInstance(File p_file)
-
getFile
public File getFile()
- Specified by:
getFilein interfacede.uplanet.lucy.server.util.IVHFileDescriptor
-
-