@Deprecated public class MultiPartInputStreamParser extends Object
getNonComplianceWarnings()| Modifier and Type | Class and Description |
|---|---|
class |
MultiPartInputStreamParser.MultiPart
Deprecated.
|
static class |
MultiPartInputStreamParser.NonCompliance
Deprecated.
|
| Modifier and Type | Field and Description |
|---|---|
static MultipartConfigElement |
__DEFAULT_MULTIPART_CONFIG
Deprecated.
|
protected MultipartConfigElement |
_config
Deprecated.
|
protected String |
_contentType
Deprecated.
|
protected File |
_contextTmpDir
Deprecated.
|
protected boolean |
_deleteOnExit
Deprecated.
|
protected Exception |
_err
Deprecated.
|
protected InputStream |
_in
Deprecated.
|
protected boolean |
_parsed
Deprecated.
|
protected MultiMap<Part> |
_parts
Deprecated.
|
protected File |
_tmpDir
Deprecated.
|
protected boolean |
_writeFilesWithFilenames
Deprecated.
|
static MultiMap<Part> |
EMPTY_MAP
Deprecated.
|
| Constructor and Description |
|---|
MultiPartInputStreamParser(InputStream in,
String contentType,
MultipartConfigElement config,
File contextTmpDir)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deleteParts()
Deprecated.
Delete any tmp storage for parts, and clear out the parts list.
|
EnumSet<MultiPartInputStreamParser.NonCompliance> |
getNonComplianceWarnings()
Deprecated.
|
Collection<Part> |
getParsedParts()
Deprecated.
Get the already parsed parts.
|
Part |
getPart(String name)
Deprecated.
Get the named Part.
|
Collection<Part> |
getParts()
Deprecated.
Parse, if necessary, the multipart data and return the list of Parts.
|
boolean |
isDeleteOnExit()
Deprecated.
|
boolean |
isWriteFilesWithFilenames()
Deprecated.
|
protected void |
parse()
Deprecated.
Parse, if necessary, the multipart stream.
|
void |
setDeleteOnExit(boolean deleteOnExit)
Deprecated.
|
void |
setWriteFilesWithFilenames(boolean writeFilesWithFilenames)
Deprecated.
|
protected void |
throwIfError()
Deprecated.
Throws an exception if one has been latched.
|
public static final MultipartConfigElement __DEFAULT_MULTIPART_CONFIG
protected InputStream _in
protected MultipartConfigElement _config
protected String _contentType
protected Exception _err
protected File _tmpDir
protected File _contextTmpDir
protected boolean _deleteOnExit
protected boolean _writeFilesWithFilenames
protected boolean _parsed
public MultiPartInputStreamParser(InputStream in, String contentType, MultipartConfigElement config, File contextTmpDir)
in - Request input streamcontentType - Content-Type headerconfig - MultipartConfigElementcontextTmpDir - javax.servlet.context.tempdirpublic EnumSet<MultiPartInputStreamParser.NonCompliance> getNonComplianceWarnings()
public Collection<Part> getParsedParts()
public void deleteParts()
public Collection<Part> getParts() throws IOException
IOException - if unable to get the partspublic Part getPart(String name) throws IOException
name - the part nameIOException - if unable to get the partprotected void throwIfError()
throws IOException
IOException - the exception (if present)protected void parse()
public void setDeleteOnExit(boolean deleteOnExit)
public void setWriteFilesWithFilenames(boolean writeFilesWithFilenames)
public boolean isWriteFilesWithFilenames()
public boolean isDeleteOnExit()
Copyright © 1995–2018 Webtide. All rights reserved.