lumis.doui.control.multifileupload
Class MultiFileUploadUtil

Package class diagram package MultiFileUploadUtil
java.lang.Object
  extended by lumis.doui.control.multifileupload.MultiFileUploadUtil

public abstract class MultiFileUploadUtil
extends java.lang.Object

A Utility class for MultiFileUploadControl.

Since:
6.1.0

Field Summary
static java.util.regex.Pattern PATTERN_INVALID_CHARACTERS_FILE_NAME
          Pattern that determines whether the characters in the file name are invalid.
static java.lang.String RESOURCE_PATH
          Control's resource path.
static java.lang.String SUBCONTROL_PREFIX
          Prefix to be used in generated sub-controls.
 
Constructor Summary
MultiFileUploadUtil()
           
 
Method Summary
static java.lang.String getContentType(java.lang.String filePath)
          Gets content type based on the given file path.
static java.lang.String getTempPath(java.lang.String relativePath)
          Gets an temporary path based on relative path.
static java.lang.String getUploadPath(java.lang.String relativePath)
          Gets an upload path based on relative path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUBCONTROL_PREFIX

public static final java.lang.String SUBCONTROL_PREFIX
Prefix to be used in generated sub-controls.

Since:
6.1.0
See Also:
Constant Field Values

PATTERN_INVALID_CHARACTERS_FILE_NAME

public static final java.util.regex.Pattern PATTERN_INVALID_CHARACTERS_FILE_NAME
Pattern that determines whether the characters in the file name are invalid.

Since:
6.1.0

RESOURCE_PATH

public static final java.lang.String RESOURCE_PATH
Control's resource path.

Since:
6.1.0
See Also:
Constant Field Values
Constructor Detail

MultiFileUploadUtil

public MultiFileUploadUtil()
Method Detail

getUploadPath

public static java.lang.String getUploadPath(java.lang.String relativePath)
Gets an upload path based on relative path.

Parameters:
relativePath - the relative path.
Returns:
the upload path.
Since:
6.1.0

getTempPath

public static java.lang.String getTempPath(java.lang.String relativePath)
Gets an temporary path based on relative path.

Parameters:
relativePath - the relative path.
Returns:
the temporary path.
Since:
6.1.0

getContentType

public static java.lang.String getContentType(java.lang.String filePath)
                                       throws java.io.IOException
Gets content type based on the given file path.

Parameters:
filePath - the file path.
Returns:
content type.
Throws:
java.io.IOException - if an IO error occured.
Since:
6.1.0


Lumisportal  6.1.0.111014 - Copyright © 2001-2007, Lumis. All Rights Reserved.