Interface MimeTypeChecker

  • All Known Implementing Classes:
    DefaultMimeTypeChecker

    public interface MimeTypeChecker
    Allows to check if given Media's content type is valid
    • Method Detail

      • isMediaAcceptable

        boolean isMediaAcceptable​(org.zkoss.util.media.Media media,
                                  java.lang.String acceptParam)
        Checks if given Media's content type is valid
        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