|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.aims.mtier.model.util.FileUpload
public class FileUpload
Utility for file Upload with multipart/form-data
Constructor Summary | |
---|---|
FileUpload()
|
Method Summary | |
---|---|
void |
doUpload(HttpServletRequest req)
Used for file upload, extracts the data & the input values. |
String |
getBinaryExtension()
Returns the File extension of Binary file. |
String |
getContentType()
Returns the ContentType of the uploaded file. |
String |
getFieldValue(String fieldName)
Returns the FieldValue of the input fields. |
long |
getFileLength()
Returns the file length of the uploaded file. |
String |
getFilename()
Returns the filename of the uploaded file. |
String |
getFilepath()
Returns the full path of the uploaded file. |
String |
getUploadedFile()
Returns the contents of the uploaded file as a string. |
InputStream |
getUploadedFileAsStream()
Returns the contents of the uploaded file as inputstream. |
InputStream |
getUploadedFileAsStream(String encoding)
Returns the contents of the uploaded file as inputstream. |
void |
setBinaryExtension(String value)
Sets the File extension of Binary file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileUpload()
Method Detail |
---|
public String getFilename()
public String getUploadedFile()
public InputStream getUploadedFileAsStream()
public InputStream getUploadedFileAsStream(String encoding) throws UnsupportedEncodingException
UnsupportedEncodingException
public String getFilepath()
public long getFileLength()
public String getContentType()
public String getFieldValue(String fieldName)
public String getBinaryExtension()
public void setBinaryExtension(String value)
FileUpload upload = new FileUpload();
upload.setBinaryExtension(getBinaryExtension() + ",arc");
public void doUpload(HttpServletRequest req) throws IOException
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |