org.mule.transport.http.multipart
Class MultiPartInputStream
java.lang.Object
org.mule.transport.http.multipart.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 MultipartConfiguration __DEFAULT_MULTIPART_CONFIG
_in
protected InputStream _in
_config
protected MultipartConfiguration _config
_contentType
protected String _contentType
_map
protected MultiMap _map
_parts
protected Map<String,Part> _parts
_tmpDir
protected File _tmpDir
CR
public static int CR
LF
public static int LF
MultiPartInputStream
public MultiPartInputStream(InputStream in,
String contentType,
MultipartConfiguration config)
- Parameters:
in
- Request input streamcontentType
- Content-Type headerconfig
- MultipartConfiguration
getParts
public Collection<Part> getParts()
throws IOException
- Throws:
IOException
getPart
public Part getPart(String name)
throws IOException,
ServletException
- Throws:
IOException
ServletException
getMap
public MultiMap getMap()
throws IOException,
ServletException
- Throws:
IOException
ServletException
parse
protected void parse()
throws IOException
- Throws:
IOException
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.