| 
org.netbeans.lib.uihandler 1.10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.lib.uihandler.MultiPartHandler
public class MultiPartHandler
| Nested Class Summary | |
|---|---|
static interface | 
MultiPartHandler.InputFacade
 | 
static interface | 
MultiPartHandler.RequestFacade
 | 
| Field Summary | |
|---|---|
protected  Hashtable<String,Vector<String>> | 
formFields
 | 
protected  Hashtable<String,org.netbeans.lib.uihandler.MultiPartHandler.OneUpload> | 
uploadFiles
 | 
| Constructor Summary | |
|---|---|
MultiPartHandler(MultiPartHandler.RequestFacade request,
                 String tmpDirectory)
Instantiate a new multipart handler with default  | 
|
MultiPartHandler(MultiPartHandler.RequestFacade request,
                 String tmpDirectory,
                 int maxUploadSize)
 | 
|
MultiPartHandler(MultiPartHandler.RequestFacade request,
                 String tmpDirectory,
                 int maxUploadSize,
                 String fieldEncoding)
Instantiate a new OneUpload to handle the given request, saving any uploaded files to the given directory and limiting the upload size to maxUploadSize.  | 
|
| Method Summary | |
|---|---|
 void | 
close()
close the multi-part form handler  | 
 File | 
getFile(String name)
Returns a File object for the specified file saved on the server's filesystem, or null if the file was not included in the upload.  | 
 String | 
getFileName(String name)
Returns the filesystem name of the specified file, or null if the file was not included in the upload.  | 
 Enumeration | 
getFileNames()
Returns the names of all the uploaded files as an Enumeration of Strings.  | 
 String | 
getFileType(String name)
Returns the content type of the specified file (as supplied by the client browser), or null if the file was not included in the upload.  | 
 String | 
getParameter(String name)
Returns the value of the named parameter as a String, or null if the parameter was not sent or was sent without a value.  | 
 Enumeration | 
getParameterNames()
Returns the names of all the parameters as an Enumeration of Strings.  | 
 String[] | 
getParameterValues(String name)
Returns the values of the named parameter as a String array, or null if the parameter was not sent.  | 
 void | 
parseMultipartUpload()
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected Hashtable<String,Vector<String>> formFields
protected Hashtable<String,org.netbeans.lib.uihandler.MultiPartHandler.OneUpload> uploadFiles
| Constructor Detail | 
|---|
public MultiPartHandler(MultiPartHandler.RequestFacade request, String tmpDirectory) throws IOException
IOExceptionpublic MultiPartHandler(MultiPartHandler.RequestFacade request, String tmpDirectory, int maxUploadSize) throws IOException
IOExceptionpublic MultiPartHandler(MultiPartHandler.RequestFacade request, String tmpDirectory, int maxUploadSize, String fieldEncoding) throws IOException
IOException| Method Detail | 
|---|
public void parseMultipartUpload()
                          throws IOException
IOExceptionpublic Enumeration getParameterNames()
public Enumeration getFileNames()
public String getParameter(String name)
public String[] getParameterValues(String name)
public String getFileName(String name)
public String getFileType(String name)
public File getFile(String name)
public void close()
           throws IOException
IOException
  | 
org.netbeans.lib.uihandler 1.10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||