com.ibm.commerce.server
Class AttachConfigUtil

java.lang.Object
  |
  +--com.ibm.commerce.server.AttachConfigUtil

public class AttachConfigUtil
extends java.lang.Object

Attachment Config Processing Initialization. Only used internally


Field Summary
static java.util.Hashtable attachConfig
          HashTable to store config parameters for reference command
static long maxsize
          site level maximum upload size
static java.lang.String maxsizeStr
          site level maximum upload size in String
 
Constructor Summary
AttachConfigUtil(java.lang.String refcommand)
          Constructor for attachment configurations.
 
Method Summary
 boolean enabledreturnurl()
          is returnURL enabled .
 int getCommandIndex()
          Gets the command_index .
 long getmaxuploadsize()
          Gets the maximum uploaded size .
 java.lang.String getsupportedExt()
          Gets the supported extension in configuration .
 boolean viruscheck()
          is Virus Check enabled .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxsize

public static long maxsize
site level maximum upload size

maxsizeStr

public static java.lang.String maxsizeStr
site level maximum upload size in String

attachConfig

public static java.util.Hashtable attachConfig
HashTable to store config parameters for reference command

Hastable attachConfig

Constructor Detail

AttachConfigUtil

public AttachConfigUtil(java.lang.String refcommand)
Constructor for attachment configurations.
Method Detail

getsupportedExt

public java.lang.String getsupportedExt()
Gets the supported extension in configuration .
Returns:
supportedFile extension

getmaxuploadsize

public long getmaxuploadsize()
Gets the maximum uploaded size .
Returns:
maximum uploaded size

viruscheck

public boolean viruscheck()
is Virus Check enabled .
Returns:
enabledVirusCheck if virus check is enabled. The default is false or disabled .

enabledreturnurl

public boolean enabledreturnurl()
is returnURL enabled .
Returns:
returnURL to check if returnURL is used

getCommandIndex

public int getCommandIndex()
Gets the command_index .
Returns:
command_index the index in attachment configuration file if value is ECConstants.UPLOAD_NO_CMD_INDEX means refcmd is missing config params