jet.servlet.internal
Class JetFileUploaded

java.lang.Object
  extended by jet.servlet.internal.JetFileUploaded

public class JetFileUploaded
extends java.lang.Object

Class to get uploaded file from request

Author:
Markus.Meisters@web.de

Field Summary
private  byte[] content
          file content
private  java.lang.String contentDisposition
          the content diposition
private  java.lang.String contentType
          The content type of the file
private  java.lang.String fieldname
          The form field name
private  java.lang.String filename
          the file name
 
Constructor Summary
JetFileUploaded(java.lang.String fieldname, java.lang.String filename, java.lang.String contentType, byte[] content)
           
 
Method Summary
 byte[] getContent()
          Returns the file content
 java.lang.String getContentDisposition()
          Returns the content disposition
 java.lang.String getContentType()
          Returns the content type of the uploaded file
 java.lang.String getFieldname()
          Returns the form field name
 java.lang.String getFilename()
          Returns the file name
private  void setContent(byte[] content)
          set the file content
private  void setContentDisposition(java.lang.String contentDisposition)
          Set the content disposition
private  void setContentType(java.lang.String contentType)
          Set the content type of the uploaded file
private  void setFieldname(java.lang.String fieldname)
          Setb the fieldname qparam fieldname
private  void setFilename(java.lang.String filename)
          Set the file name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fieldname

private java.lang.String fieldname
The form field name


filename

private java.lang.String filename
the file name


contentType

private java.lang.String contentType
The content type of the file


contentDisposition

private java.lang.String contentDisposition
the content diposition


content

private byte[] content
file content

Constructor Detail

JetFileUploaded

public JetFileUploaded(java.lang.String fieldname,
                       java.lang.String filename,
                       java.lang.String contentType,
                       byte[] content)
Method Detail

getFieldname

public java.lang.String getFieldname()
Returns the form field name

Returns:
String field name

setFieldname

private void setFieldname(java.lang.String fieldname)
Setb the fieldname qparam fieldname


getFilename

public java.lang.String getFilename()
Returns the file name

Returns:
String file name

setFilename

private void setFilename(java.lang.String filename)
Set the file name

Parameters:
filename - file name

getContentType

public java.lang.String getContentType()
Returns the content type of the uploaded file

Returns:
String the content type

setContentType

private void setContentType(java.lang.String contentType)
Set the content type of the uploaded file

Parameters:
contentType - content type

getContentDisposition

public java.lang.String getContentDisposition()
Returns the content disposition

Returns:
String content disposition

setContentDisposition

private void setContentDisposition(java.lang.String contentDisposition)
Set the content disposition

Parameters:
contentDisposition -

getContent

public byte[] getContent()
Returns the file content


setContent

private void setContent(byte[] content)
set the file content

Parameters:
content - content