jodd.servlet.upload
Class FileUploadHeader

java.lang.Object
  extended by jodd.servlet.upload.FileUploadHeader

public class FileUploadHeader
extends java.lang.Object

Parses file upload header.


Method Summary
 java.lang.String getContentDisposition()
          Returns content disposition.
 java.lang.String getContentType()
          Returns uploaded content type.
 java.lang.String getFileName()
          Returns file name (base name and extension, without full path data).
 java.lang.String getFormFieldName()
          Returns form field name.
 java.lang.String getFormFilename()
          Returns complete file name as specified at client side.
 java.lang.String getMimeSubtype()
          Returns file sub type MIME.
 java.lang.String getMimeType()
          Returns file types MIME.
 boolean isFile()
          Returns true if uploaded data are correctly marked as a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isFile

public boolean isFile()
Returns true if uploaded data are correctly marked as a file. This is true if header contains string 'filename'.


getFormFieldName

public java.lang.String getFormFieldName()
Returns form field name.


getFormFilename

public java.lang.String getFormFilename()
Returns complete file name as specified at client side.


getFileName

public java.lang.String getFileName()
Returns file name (base name and extension, without full path data).


getContentType

public java.lang.String getContentType()
Returns uploaded content type. It is usually in the following form:
mime_type/mime_subtype.

See Also:
getMimeType(), getMimeSubtype()

getMimeType

public java.lang.String getMimeType()
Returns file types MIME.


getMimeSubtype

public java.lang.String getMimeSubtype()
Returns file sub type MIME.


getContentDisposition

public java.lang.String getContentDisposition()
Returns content disposition. Usually it is 'form-data'.



Copyright © 2003-2012 Jodd Team