de.uplanet.lucy.server.util
Class VHFileDescriptor

java.lang.Object
  extended by de.uplanet.lucy.server.util.VHFileDescriptor

public class VHFileDescriptor
extends java.lang.Object

Holds the necessary information for the FileValueHolder.

Version:
$Revision: 70184 $

Constructor Summary
VHFileDescriptor(java.lang.String p_strFileName, java.lang.String p_strPath, java.lang.String p_strContentType, boolean p_bRefDown, de.uplanet.lucy.server.util.FileMetaInfo p_metaInfo, java.util.Date p_lastModified, boolean p_bHistory, int p_iOrder)
           
 
Method Summary
 java.lang.String getContentType()
           
 java.lang.String getFileName()
           
static VHFileDescriptor getInstance(java.lang.String p_strPath)
           
 java.util.Date getLastModified()
           
 de.uplanet.lucy.server.util.FileMetaInfo getMetaInfo()
          The meta infos of the file
 int getOrder()
           
 java.lang.String getPath()
           
 boolean isDownloadByReference()
           
 boolean isHistory()
           
 void setLastModified(java.util.Date p_dt)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VHFileDescriptor

public VHFileDescriptor(java.lang.String p_strFileName,
                        java.lang.String p_strPath,
                        java.lang.String p_strContentType,
                        boolean p_bRefDown,
                        de.uplanet.lucy.server.util.FileMetaInfo p_metaInfo,
                        java.util.Date p_lastModified,
                        boolean p_bHistory,
                        int p_iOrder)
Parameters:
p_strFileName - The file name
p_strPath - The physical file name path
p_strContentType - The content type of the file
p_bRefDown - If download by reference (should normally be true, otherwise server must stream the file up to the web).
p_metaInfo - Meta Infos of the file like (image size...)
p_lastModified - The last modified date of the file
p_bHistory - true if history file (not realy used in actual bl).
p_iOrder - the order field. (not really used in actual bl).
Method Detail

getFileName

public java.lang.String getFileName()
Returns:
The name of the file.

getPath

public java.lang.String getPath()
Returns:
The path to the file.

getContentType

public java.lang.String getContentType()
Returns:
The MIME content type.

isDownloadByReference

public boolean isDownloadByReference()
Returns:
True if download by reference

setLastModified

public void setLastModified(java.util.Date p_dt)
Parameters:
p_dt -

getMetaInfo

public de.uplanet.lucy.server.util.FileMetaInfo getMetaInfo()
The meta infos of the file

Returns:
The meta file infos (not null)

getLastModified

public java.util.Date getLastModified()

isHistory

public boolean isHistory()

getOrder

public int getOrder()

getInstance

public static final VHFileDescriptor getInstance(java.lang.String p_strPath)


Last updated: 2011-08-11 10-04
Copyright © 2000-2011 United Planet. All Rights Reserved.