org.eclipse.jetty.util
Class MultiPartInputStream
java.lang.Object
org.eclipse.jetty.util.MultiPartInputStream
public class MultiPartInputStream
- extends 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 javax.servlet.MultipartConfigElement __DEFAULT_MULTIPART_CONFIG
_in
protected InputStream _in
_config
protected javax.servlet.MultipartConfigElement _config
_contentType
protected String _contentType
_parts
protected MultiMap<String> _parts
_tmpDir
protected File _tmpDir
_contextTmpDir
protected File _contextTmpDir
MultiPartInputStream
public MultiPartInputStream(InputStream in,
String contentType,
javax.servlet.MultipartConfigElement config,
File contextTmpDir)
- Parameters:
in
- Request input streamcontentType
- Content-Type headerconfig
- MultipartConfigElementcontextTmpDir
- javax.servlet.context.tempdir
getParts
public Collection<javax.servlet.http.Part> getParts()
throws IOException,
javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
getPart
public javax.servlet.http.Part getPart(String name)
throws IOException,
javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
parse
protected void parse()
throws IOException,
javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.