com.ibm.commerce.server

Class AttachFilter

  • java.lang.Object
    • com.ibm.commerce.server.AttachFilter


  • public class AttachFilter
    extends java.lang.Object
    This class defines an attachment filter for JAR and ZIP files.
    • Constructor Summary

      Constructors 
      Constructor and Description
      AttachFilter() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.String inspect(java.io.File f, java.lang.String supportedExtList)
      This method inspects the JAR or ZIP file content to see if it contains any unsupported file extensions.
      • Methods inherited from class java.lang.Object

        equals, 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)
        This method inspects the JAR or ZIP file content to see if it contains any unsupported file extensions.
        Parameters:
        f - The uploaded file which is of JAR or ZIP format.
        supportedExtList - The list of supported file extensions in String format.
        Returns:
        The file extension in the in JAR or ZIP file which is not supported.