public class MultiPartInputStream extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
MultiPartInputStream.MultiPart |
| Modifier and Type | Field and Description |
|---|---|
static javax.servlet.MultipartConfigElement |
__DEFAULT_MULTIPART_CONFIG |
protected javax.servlet.MultipartConfigElement |
_config |
protected String |
_contentType |
protected File |
_contextTmpDir |
protected InputStream |
_in |
protected MultiMap<String> |
_parts |
protected File |
_tmpDir |
| Constructor and Description |
|---|
MultiPartInputStream(InputStream in,
String contentType,
javax.servlet.MultipartConfigElement config,
File contextTmpDir) |
| Modifier and Type | Method and Description |
|---|---|
javax.servlet.http.Part |
getPart(String name) |
Collection<javax.servlet.http.Part> |
getParts() |
protected void |
parse() |
public static final javax.servlet.MultipartConfigElement __DEFAULT_MULTIPART_CONFIG
protected InputStream _in
protected javax.servlet.MultipartConfigElement _config
protected String _contentType
protected File _tmpDir
protected File _contextTmpDir
public MultiPartInputStream(InputStream in, String contentType, javax.servlet.MultipartConfigElement config, File contextTmpDir)
in - Request input streamcontentType - Content-Type headerconfig - MultipartConfigElementcontextTmpDir - javax.servlet.context.tempdirpublic Collection<javax.servlet.http.Part> getParts() throws IOException, javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionpublic javax.servlet.http.Part getPart(String name) throws IOException, javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionprotected void parse()
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionCopyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.