PAJES 3.0.21

org.pajes.servlet
Class UploadFileRequestException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.pajes.servlet.UploadFileRequestException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
UploadFileRequestTooLargeException

public class UploadFileRequestException
extends java.lang.RuntimeException

Thrown when an IO exception relating to a multi-part request occurs.

See Also:
Serialized Form

Field Summary
static java.lang.String BOUNDARY_MISSING
          Message key for when an UploadFileRequest cannot locate the boundary after content-type header.
static java.lang.String CORRUPT_CONTENT_DISPOSITION
          Message key for when an UploadFileRequest detects a corrupt Content-Disposition.
static java.lang.String CORRUPT_CONTENT_TYPE
          Message key for when an UploadFileRequest detects a corrupt Content-Type.
static java.lang.String LEADING_BOUNDARY_MISSING
          Message key for when an UploadFileRequest cannot locate the boundary after content-type header.
static java.lang.String MALFORMED_CONTENT_HEADERS
          Message key for when an UploadFileRequest detects a missing blank line between the content headers and the content
static java.lang.String MAX_POSTING_SIZE_EXCEEDED
          Message key for when an UploadFileRequest exceeds the maximum specifed size.
static java.lang.String TEMP_DIR_MISSING
          Message key for when an UploadFileRequest cannot locate the temporary directory.
static java.lang.String TEMP_DIR_NOT_DIRECTORY
          Message key for when an UploadFileRequest receives a directory name from the ServletContext that is not a directory.
static java.lang.String TEMP_DIR_NOT_WRITABLE
          Message key for when an UploadFileRequest receives a directory name from the ServletContext that is not writable.
 
Constructor Summary
UploadFileRequestException(java.lang.String messageKey)
          Creates a new exception, using the specified message key to locate the actual message to be displayed.
UploadFileRequestException(java.lang.String messageKey, java.lang.String[] arguments)
          Creates a new exception, using the specified message key to locate the actual message to be displayed.
UploadFileRequestException(java.lang.Throwable rootCause, long bytes)
          Creates a new exception to wrapper another exception.
 
Method Summary
 java.lang.Throwable getRootCause()
          Returns the exception that caused this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BOUNDARY_MISSING

public static final java.lang.String BOUNDARY_MISSING
Message key for when an UploadFileRequest cannot locate the boundary after content-type header.

See Also:
Constant Field Values

CORRUPT_CONTENT_DISPOSITION

public static final java.lang.String CORRUPT_CONTENT_DISPOSITION
Message key for when an UploadFileRequest detects a corrupt Content-Disposition.

See Also:
Constant Field Values

CORRUPT_CONTENT_TYPE

public static final java.lang.String CORRUPT_CONTENT_TYPE
Message key for when an UploadFileRequest detects a corrupt Content-Type.

See Also:
Constant Field Values

LEADING_BOUNDARY_MISSING

public static final java.lang.String LEADING_BOUNDARY_MISSING
Message key for when an UploadFileRequest cannot locate the boundary after content-type header.

See Also:
Constant Field Values

MALFORMED_CONTENT_HEADERS

public static final java.lang.String MALFORMED_CONTENT_HEADERS
Message key for when an UploadFileRequest detects a missing blank line between the content headers and the content

See Also:
Constant Field Values

MAX_POSTING_SIZE_EXCEEDED

public static final java.lang.String MAX_POSTING_SIZE_EXCEEDED
Message key for when an UploadFileRequest exceeds the maximum specifed size.

See Also:
Constant Field Values

TEMP_DIR_MISSING

public static final java.lang.String TEMP_DIR_MISSING
Message key for when an UploadFileRequest cannot locate the temporary directory.

See Also:
Constant Field Values

TEMP_DIR_NOT_DIRECTORY

public static final java.lang.String TEMP_DIR_NOT_DIRECTORY
Message key for when an UploadFileRequest receives a directory name from the ServletContext that is not a directory.

See Also:
Constant Field Values

TEMP_DIR_NOT_WRITABLE

public static final java.lang.String TEMP_DIR_NOT_WRITABLE
Message key for when an UploadFileRequest receives a directory name from the ServletContext that is not writable.

See Also:
Constant Field Values
Constructor Detail

UploadFileRequestException

public UploadFileRequestException(java.lang.String messageKey)
Creates a new exception, using the specified message key to locate the actual message to be displayed. If no matching message key is found, the key is returned as the message.

Parameters:
messageKey - the key from which the actual exception message will be located.

UploadFileRequestException

public UploadFileRequestException(java.lang.String messageKey,
                                  java.lang.String[] arguments)
Creates a new exception, using the specified message key to locate the actual message to be displayed. If no matching message key is found, the key is returned as the message.

Parameters:
messageKey - the key from which the actual exception message will be located.
arguments - any arguments to be passed to create the complete message.

UploadFileRequestException

public UploadFileRequestException(java.lang.Throwable rootCause,
                                  long bytes)
Creates a new exception to wrapper another exception.

Parameters:
rootCause - the Throwable exception that indicates why the parameter could not be decoded.
bytes - the number of bytes read from the stream.
Method Detail

getRootCause

public java.lang.Throwable getRootCause()
Returns the exception that caused this exception.

Returns:
the Throwable that caused this exception.

PAJES 3.0.21

Copyright © 1998-2007 Viridian Pty Limited. All Rights Reserved.