001    /*
002     * This file is part of the Echo Point Project.  This project is a
003     * collection of Components that have extended the Echo Web Application
004     * Framework Version 3.
005     *
006     * Version: MPL 1.1
007     *
008     * The contents of this file are subject to the Mozilla Public License Version
009     * 1.1 (the "License"); you may not use this file except in compliance with
010     * the License. You may obtain a copy of the License at
011     * http://www.mozilla.org/MPL/
012     *
013     * Software distributed under the License is distributed on an "AS IS" basis,
014     * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
015     * for the specific language governing rights and limitations under the
016     * License.
017     */
018    package echopoint.tucana.event;
019    
020    import echopoint.tucana.FileUploadSelector;
021    
022    /**
023     * An upload event that represents the case where an upload was terminated
024     * by the server due to the uploaded content-type not being allowed by the
025     * service.
026     *
027     * <p><b>Note:</b> Development of this component was sponsored by <a
028     * href='http://tcnbroadcasting.com/index.jsp' target='_top'>TCN
029     * Broadcasting</a>.  We are grateful for their support and sponsorship.</p>
030     *
031     * @author Rakesh 2008-11-17
032     * @version $Id: InvalidContentTypeEvent.java 102 2008-11-17 20:10:05Z sptrakesh $
033     */
034    public class InvalidContentTypeEvent extends UploadEvent
035    {
036      private static final long serialVersionUID = 1l;
037    
038      /**
039       * Creates a new {@link UploadEvent}.
040       *
041       * @param source the source of the event
042       * @param index the index of the upload
043       * @param fileName the name of the file, may not contain path information
044       * @param contentType the content type of the uploaded file
045       */
046      public InvalidContentTypeEvent( final FileUploadSelector source,
047          final String index, final String fileName, final String contentType )
048      {
049        super( source, index, fileName, contentType );
050      }
051    }