org.eclipse.jetty.util
Class MultiPartInputStream
java.lang.Object
org.eclipse.jetty.util.MultiPartInputStream
public class MultiPartInputStream
- extends java.lang.Object
MultiPartInputStream
Handle a MultiPart Mime input stream, breaking it up on the boundary into files and strings.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
__DEFAULT_MULTIPART_CONFIG
public static final MultipartConfigElement __DEFAULT_MULTIPART_CONFIG
_in
protected java.io.InputStream _in
_config
protected MultipartConfigElement _config
_contentType
protected java.lang.String _contentType
_parts
protected MultiMap<java.lang.String> _parts
_tmpDir
protected java.io.File _tmpDir
_contextTmpDir
protected java.io.File _contextTmpDir
MultiPartInputStream
public MultiPartInputStream(java.io.InputStream in,
java.lang.String contentType,
MultipartConfigElement config,
java.io.File contextTmpDir)
- Parameters:
in - Request input streamcontentType - Content-Type headerconfig - MultipartConfigElementcontextTmpDir - javax.servlet.context.tempdir
getParts
public java.util.Collection<Part> getParts()
throws java.io.IOException,
ServletException
- Throws:
java.io.IOException
ServletException
getPart
public Part getPart(java.lang.String name)
throws java.io.IOException,
ServletException
- Throws:
java.io.IOException
ServletException
parse
protected void parse()
throws java.io.IOException,
ServletException
- Throws:
java.io.IOException
ServletException
Copyright © 1995-2010 Mort Bay Consulting. All Rights Reserved.