com.ibm.commerce.server
Class AttachFilter

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

public class AttachFilter
extends java.lang.Object

Attachment Filter for Jar and Zips.


Constructor Summary
AttachFilter()
           
 
Method Summary
static java.lang.String inspect(java.io.File f, java.lang.String supportedExtList)
          to inspect the jar or zip file content to see if it contains any unsupported file extensions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachFilter

public AttachFilter()
Method Detail

inspect

public static java.lang.String inspect(java.io.File f,
                                       java.lang.String supportedExtList)
to inspect the jar or zip file content to see if it contains any unsupported file extensions.
Parameters:
f - the uploaded file which is of zip or jar format
supportedExtList - the list of supported file extensions in String
Returns:
fileextension in jar which is not supported