hudson.util
Class MultipartFormDataParser

java.lang.Object
  extended by hudson.util.MultipartFormDataParser

public class MultipartFormDataParser
extends Object

Wraps commons file-upload and handles a "multipart/form-data" form submisison (that often includes file upload.)

Author:
Kohsuke Kawaguchi

Constructor Summary
MultipartFormDataParser(javax.servlet.http.HttpServletRequest request)
           
 
Method Summary
 void cleanUp()
          If any file is created on the disk, delete them all.
 String get(String key)
           
 org.apache.commons.fileupload.FileItem getFileItem(String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultipartFormDataParser

public MultipartFormDataParser(javax.servlet.http.HttpServletRequest request)
                        throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException
Method Detail

get

public String get(String key)

getFileItem

public org.apache.commons.fileupload.FileItem getFileItem(String key)

cleanUp

public void cleanUp()
If any file is created on the disk, delete them all. Even if this method is not called, the resource will be still cleaned up later by GC.



Copyright © 2004-2013. All Rights Reserved.