org.mule.transport.http.multipart
Class MultiPartInputStream

java.lang.Object
  extended by org.mule.transport.http.multipart.MultiPartInputStream

public class MultiPartInputStream
extends java.lang.Object

MultipartInputStream Handle a MultiPart Mime input stream, breaking it up on the boundary into files and strings.


Nested Class Summary
 class MultiPartInputStream.MultiPart
           
 
Field Summary
static MultipartConfiguration __DEFAULT_MULTIPART_CONFIG
           
protected  MultipartConfiguration _config
           
protected  java.lang.String _contentType
           
protected  java.io.InputStream _in
           
protected  MultiMap _map
           
protected  java.util.Map<java.lang.String,Part> _parts
           
protected  java.io.File _tmpDir
           
static int CR
           
static int LF
           
 
Constructor Summary
MultiPartInputStream(java.io.InputStream in, java.lang.String contentType, MultipartConfiguration config)
           
 
Method Summary
 MultiMap getMap()
           
 Part getPart(java.lang.String name)
           
 java.util.Collection<Part> getParts()
           
protected  void parse()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__DEFAULT_MULTIPART_CONFIG

public static final MultipartConfiguration __DEFAULT_MULTIPART_CONFIG

_in

protected java.io.InputStream _in

_config

protected MultipartConfiguration _config

_contentType

protected java.lang.String _contentType

_map

protected MultiMap _map

_parts

protected java.util.Map<java.lang.String,Part> _parts

_tmpDir

protected java.io.File _tmpDir

CR

public static int CR

LF

public static int LF
Constructor Detail

MultiPartInputStream

public MultiPartInputStream(java.io.InputStream in,
                            java.lang.String contentType,
                            MultipartConfiguration config)
Parameters:
in - Request input stream
contentType - Content-Type header
config - MultipartConfiguration
Method Detail

getParts

public java.util.Collection<Part> getParts()
                                    throws java.io.IOException
Throws:
java.io.IOException

getPart

public Part getPart(java.lang.String name)
             throws java.io.IOException,
                    javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException

getMap

public MultiMap getMap()
                throws java.io.IOException,
                       javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException

parse

protected void parse()
              throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.