org.eclipse.jetty.util
Class MultiPartInputStream

java.lang.Object
  extended by org.eclipse.jetty.util.MultiPartInputStream

public class MultiPartInputStream
extends 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 MultipartConfigElement __DEFAULT_MULTIPART_CONFIG
           
protected  MultipartConfigElement _config
           
protected  String _contentType
           
protected  InputStream _in
           
protected  MultiMap _map
           
protected  Map<String,Part> _parts
           
protected  File _tmpDir
           
 
Constructor Summary
MultiPartInputStream(InputStream in, String contentType, MultipartConfigElement config)
           
 
Method Summary
 MultiMap getMap()
           
 Part getPart(String name)
           
 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 MultipartConfigElement __DEFAULT_MULTIPART_CONFIG

_in

protected InputStream _in

_config

protected MultipartConfigElement _config

_contentType

protected String _contentType

_map

protected MultiMap _map

_parts

protected Map<String,Part> _parts

_tmpDir

protected File _tmpDir
Constructor Detail

MultiPartInputStream

public MultiPartInputStream(InputStream in,
                            String contentType,
                            MultipartConfigElement config)
Parameters:
in - Request input stream
contentType - Content-Type header
config - MultipartConfigElement
Method Detail

getParts

public Collection<Part> getParts()
                          throws IOException,
                                 ServletException
Throws:
IOException
ServletException

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,
                     ServletException
Throws:
IOException
ServletException


Copyright © 1995-2010 Mort Bay Consulting. All Rights Reserved.