|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjet.servlet.internal.JetFileUploaded
public class JetFileUploaded
Class to get uploaded file from request
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 |
---|
private java.lang.String fieldname
private java.lang.String filename
private java.lang.String contentType
private java.lang.String contentDisposition
private byte[] content
Constructor Detail |
---|
public JetFileUploaded(java.lang.String fieldname, java.lang.String filename, java.lang.String contentType, byte[] content)
Method Detail |
---|
public java.lang.String getFieldname()
private void setFieldname(java.lang.String fieldname)
public java.lang.String getFilename()
private void setFilename(java.lang.String filename)
filename
- file namepublic java.lang.String getContentType()
private void setContentType(java.lang.String contentType)
contentType
- content typepublic java.lang.String getContentDisposition()
private void setContentDisposition(java.lang.String contentDisposition)
contentDisposition
- public byte[] getContent()
private void setContent(byte[] content)
content
- content
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |