Class DefaultMimeTypeChecker

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isMediaAcceptable​(org.zkoss.util.media.Media media, java.lang.String acceptParam)
      Checks if given Media's content type is valid
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultMimeTypeChecker

        public DefaultMimeTypeChecker()
    • Method Detail

      • isMediaAcceptable

        public boolean isMediaAcceptable​(org.zkoss.util.media.Media media,
                                         java.lang.String acceptParam)
        Description copied from interface: MimeTypeChecker
        Checks if given Media's content type is valid
        Specified by:
        isMediaAcceptable in interface MimeTypeChecker
        Parameters:
        media - to check
        acceptParam - specifies the MIME types of files that the server accepts e.g "audio/|video/|image/*"
        Returns:
        true if it's valid, false otherwise