public class DatastreamFilenameHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
FILENAME_REL |
protected static Pattern |
ILLEGAL_FILENAME_REGEX |
protected Access |
m_apiAService |
protected Management |
m_apiMService |
protected static String |
m_datastreamContentDispositionInlineEnabled |
protected static String |
m_datastreamDefaultExtension |
protected static String |
m_datastreamDefaultFilename |
protected static String |
m_datastreamExtensionMappingDefault |
protected static String |
m_datastreamExtensionMappingId |
protected static String |
m_datastreamExtensionMappingLabel |
protected static String |
m_datastreamExtensionMappingRels |
protected static String |
m_datastreamFilenameSource |
protected static HashMap<String,String> |
m_extensionMappings |
| Constructor and Description |
|---|
DatastreamFilenameHelper(Server fedoraServer,
Management management,
Access access)
Read configuration information from fedora.fcfg
|
| Modifier and Type | Method and Description |
|---|---|
void |
addContentDispositionHeader(Context context,
String pid,
String dsID,
String download,
Date asOfDateTime,
MIMETypedStream stream)
Add a content disposition header to a MIMETypedStream based on configuration preferences.
|
protected static String m_datastreamContentDispositionInlineEnabled
protected static String m_datastreamFilenameSource
protected static String m_datastreamExtensionMappingLabel
protected static String m_datastreamExtensionMappingId
protected static String m_datastreamExtensionMappingRels
protected static String m_datastreamExtensionMappingDefault
protected static String m_datastreamDefaultFilename
protected static String m_datastreamDefaultExtension
protected static String FILENAME_REL
protected static Pattern ILLEGAL_FILENAME_REGEX
protected Management m_apiMService
protected Access m_apiAService
public DatastreamFilenameHelper(Server fedoraServer, Management management, Access access)
fedoraServer - management - access - public final void addContentDispositionHeader(Context context, String pid, String dsID, String download, Date asOfDateTime, MIMETypedStream stream) throws Exception
context - pid - dsID - download - true if file is to be downloadedasOfDateTime - stream - ExceptionCopyright © 2013 DuraSpace. All Rights Reserved.