OOP MimeParser Version 3.5

com.bentofw.mime
Class InvalidContentTypeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.bentofw.mime.InvalidContentTypeException
All Implemented Interfaces:
java.io.Serializable

public class InvalidContentTypeException
extends java.lang.Exception

When the Content-Type (mime type) of the uploaded file is invalid, this exception will be thrown by MimeParser.

Author:
Jun Inamori
See Also:
Serialized Form

Method Summary
 java.lang.String getAcceptMimeTypes()
          Return the list of the mime-types to be accepted.
 java.util.Set getAcceptMimeTypesAsSet()
          Return the Set object which includes the acceptable mime-types.
 java.lang.String getCurrentMimeType()
          Return the mime-type of the file to be uploaded.
 java.lang.String getFileName()
          Return the file name to be uploaded.
 java.lang.String getMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

getFileName

public java.lang.String getFileName()
Return the file name to be uploaded.

Returns:
The file name to be uploaded.
Since:
2.2

getCurrentMimeType

public java.lang.String getCurrentMimeType()
Return the mime-type of the file to be uploaded.

Returns:
The mime-type of the file to be uploaded.
Since:
2.2

getAcceptMimeTypes

public java.lang.String getAcceptMimeTypes()
Return the list of the mime-types to be accepted.

Returns:
The list of the mime-types to be accepted.
Since:
2.2

getAcceptMimeTypesAsSet

public java.util.Set getAcceptMimeTypesAsSet()
Return the Set object which includes the acceptable mime-types.

Returns:
The Set object which includes the acceptable mime-types.
Since:
2.3

OOP MimeParser Version 3.5

ALL CONTENTS COPYRIGHT 2005, OOP-Research Corporation. All rights reserved.
Any questions and comments are welcome to OOP-Research Corporation.