toolbox.web.util
Class MultipartRequest

Package class diagram package MultipartRequest
java.lang.Object
  extended by toolbox.web.util.MultipartRequest

public class MultipartRequest
extends java.lang.Object

Class representing a HTTP multipart/form-data request. Provides methods for accessing the various parts of the request.


Constructor Summary
MultipartRequest(javax.servlet.http.HttpServletRequest request)
          Parses the HttpServletRequest to create a new MultipartRequest instance.
 
Method Summary
 Part getPart(java.lang.String name)
          Returns the part with the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultipartRequest

public MultipartRequest(javax.servlet.http.HttpServletRequest request)
                 throws java.io.IOException
Parses the HttpServletRequest to create a new MultipartRequest instance.

Parameters:
request - HttpServletRequest of content type multipart/form-data.
Throws:
java.io.IOException - if the multipart data cannot be read from the servlet request.
Method Detail

getPart

public Part getPart(java.lang.String name)
Returns the part with the given name.

Parameters:
name - Name of part to return.
Returns:
Part with the given name.