@Deprecated
public class MultiPartInputStreamParser
extends java.lang.Object
getNonComplianceWarnings()| Modifier and Type | Class | Description |
|---|---|---|
class |
MultiPartInputStreamParser.MultiPart |
Deprecated.
|
static class |
MultiPartInputStreamParser.NonCompliance |
Deprecated.
|
| Modifier and Type | Field | Description |
|---|---|---|
static MultipartConfigElement |
__DEFAULT_MULTIPART_CONFIG |
Deprecated.
|
protected MultipartConfigElement |
_config |
Deprecated.
|
protected java.lang.String |
_contentType |
Deprecated.
|
protected java.io.File |
_contextTmpDir |
Deprecated.
|
protected boolean |
_deleteOnExit |
Deprecated.
|
protected java.lang.Exception |
_err |
Deprecated.
|
protected java.io.InputStream |
_in |
Deprecated.
|
protected boolean |
_parsed |
Deprecated.
|
protected MultiMap<Part> |
_parts |
Deprecated.
|
protected java.io.File |
_tmpDir |
Deprecated.
|
protected boolean |
_writeFilesWithFilenames |
Deprecated.
|
static MultiMap<Part> |
EMPTY_MAP |
Deprecated.
|
| Constructor | Description |
|---|---|
MultiPartInputStreamParser(java.io.InputStream in,
java.lang.String contentType,
MultipartConfigElement config,
java.io.File contextTmpDir) |
Deprecated.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
deleteParts() |
Deprecated.
Delete any tmp storage for parts, and clear out the parts list.
|
java.util.EnumSet<MultiPartInputStreamParser.NonCompliance> |
getNonComplianceWarnings() |
Deprecated.
|
java.util.Collection<Part> |
getParsedParts() |
Deprecated.
Get the already parsed parts.
|
Part |
getPart(java.lang.String name) |
Deprecated.
Get the named Part.
|
java.util.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 java.io.InputStream _in
protected MultipartConfigElement _config
protected java.lang.String _contentType
protected java.lang.Exception _err
protected java.io.File _tmpDir
protected java.io.File _contextTmpDir
protected boolean _deleteOnExit
protected boolean _writeFilesWithFilenames
protected boolean _parsed
public MultiPartInputStreamParser(java.io.InputStream in,
java.lang.String contentType,
MultipartConfigElement config,
java.io.File contextTmpDir)
in - Request input streamcontentType - Content-Type headerconfig - MultipartConfigElementcontextTmpDir - javax.servlet.context.tempdirpublic java.util.EnumSet<MultiPartInputStreamParser.NonCompliance> getNonComplianceWarnings()
public java.util.Collection<Part> getParsedParts()
public void deleteParts()
public java.util.Collection<Part> getParts() throws java.io.IOException
java.io.IOException - if unable to get the partspublic Part getPart(java.lang.String name) throws java.io.IOException
name - the part namejava.io.IOException - if unable to get the partprotected void throwIfError()
throws java.io.IOException
java.io.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.