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 String
getContentType()
File
getFile()
String
getFileName()
static VHFileDescriptor
getInstance(File p_file)
static VHFileDescriptor
getInstance(String p_strPath)
Date
getLastModified()
String
getPath()
boolean
isStreamingMode()
-
-
-
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 betrue
for streaming, should normally befalse
, otherwise server must stream the file up to the web).
-
-
Method Detail
-
getFileName
public String getFileName()
- Specified by:
getFileName
in interfacede.uplanet.lucy.server.util.IVHFileDescriptor
- Returns:
- The name of the file.
-
getPath
public String getPath()
- Specified by:
getPath
in interfacede.uplanet.lucy.server.util.IVHFileDescriptor
- Returns:
- The path to the file.
-
getContentType
public String getContentType()
- Specified by:
getContentType
in interfacede.uplanet.lucy.server.util.IVHFileDescriptor
- Returns:
- The MIME content type.
-
isStreamingMode
public boolean isStreamingMode()
- Specified by:
isStreamingMode
in interfacede.uplanet.lucy.server.util.IVHFileDescriptor
-
getLastModified
public Date getLastModified()
- Specified by:
getLastModified
in 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:
getFile
in interfacede.uplanet.lucy.server.util.IVHFileDescriptor
-
-