@Deprecated
public class MultiPartInputStreamParser
extends java.lang.Object
getNonComplianceWarnings()
Modifier and Type | Class and Description |
---|---|
class |
MultiPartInputStreamParser.MultiPart
Deprecated.
|
static class |
MultiPartInputStreamParser.NonCompliance
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
static javax.servlet.MultipartConfigElement |
__DEFAULT_MULTIPART_CONFIG
Deprecated.
|
protected javax.servlet.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<javax.servlet.http.Part> |
_parts
Deprecated.
|
protected java.io.File |
_tmpDir
Deprecated.
|
protected boolean |
_writeFilesWithFilenames
Deprecated.
|
static MultiMap<javax.servlet.http.Part> |
EMPTY_MAP
Deprecated.
|
Constructor and Description |
---|
MultiPartInputStreamParser(java.io.InputStream in,
java.lang.String contentType,
javax.servlet.MultipartConfigElement config,
java.io.File contextTmpDir)
Deprecated.
|
Modifier and Type | Method and 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<javax.servlet.http.Part> |
getParsedParts()
Deprecated.
Get the already parsed parts.
|
javax.servlet.http.Part |
getPart(java.lang.String name)
Deprecated.
Get the named Part.
|
java.util.Collection<javax.servlet.http.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 javax.servlet.MultipartConfigElement __DEFAULT_MULTIPART_CONFIG
public static final MultiMap<javax.servlet.http.Part> EMPTY_MAP
protected java.io.InputStream _in
protected javax.servlet.MultipartConfigElement _config
protected java.lang.String _contentType
protected MultiMap<javax.servlet.http.Part> _parts
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, javax.servlet.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<javax.servlet.http.Part> getParsedParts()
public void deleteParts()
public java.util.Collection<javax.servlet.http.Part> getParts() throws java.io.IOException
java.io.IOException
- if unable to get the partspublic javax.servlet.http.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–2023 Webtide. All rights reserved.