org.jboss.resteasy.plugins.providers.multipart
Class MultipartInputImpl

java.lang.Object
  extended by org.jboss.resteasy.plugins.providers.multipart.MultipartInputImpl
All Implemented Interfaces:
MultipartInput
Direct Known Subclasses:
MultipartFormDataInputImpl, MultipartRelatedInputImpl

public class MultipartInputImpl
extends java.lang.Object
implements MultipartInput

Version:
$Revision: 1 $
Author:
Bill Burke

Nested Class Summary
 class MultipartInputImpl.PartImpl
           
 
Field Summary
protected  MediaType contentType
           
protected  MediaType defaultPartContentType
           
protected static java.lang.annotation.Annotation[] empty
           
protected  org.apache.james.mime4j.message.Message mimeMessage
           
protected  java.util.List<InputPart> parts
           
protected  Providers workers
           
 
Constructor Summary
MultipartInputImpl(MediaType contentType, Providers workers)
           
MultipartInputImpl(MediaType contentType, Providers workers, MediaType defaultPartContentType)
           
 
Method Summary
protected  java.io.InputStream addHeaderToHeadlessStream(java.io.InputStream is)
           
protected  java.io.InputStream createHeaderInputStream()
           
protected  InputPart extractPart(org.apache.james.mime4j.message.BodyPart bodyPart)
           
protected  void extractParts()
           
 java.util.List<InputPart> getParts()
           
 java.lang.String getPreamble()
           
static void main(java.lang.String[] args)
           
 void parse(java.io.InputStream is)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contentType

protected MediaType contentType

workers

protected Providers workers

mimeMessage

protected org.apache.james.mime4j.message.Message mimeMessage

parts

protected java.util.List<InputPart> parts

empty

protected static final java.lang.annotation.Annotation[] empty

defaultPartContentType

protected MediaType defaultPartContentType
Constructor Detail

MultipartInputImpl

public MultipartInputImpl(MediaType contentType,
                          Providers workers)

MultipartInputImpl

public MultipartInputImpl(MediaType contentType,
                          Providers workers,
                          MediaType defaultPartContentType)
Method Detail

parse

public void parse(java.io.InputStream is)
           throws java.io.IOException
Throws:
java.io.IOException

addHeaderToHeadlessStream

protected java.io.InputStream addHeaderToHeadlessStream(java.io.InputStream is)
                                                 throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

createHeaderInputStream

protected java.io.InputStream createHeaderInputStream()
                                               throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

getPreamble

public java.lang.String getPreamble()
Specified by:
getPreamble in interface MultipartInput

getParts

public java.util.List<InputPart> getParts()
Specified by:
getParts in interface MultipartInput

extractParts

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

extractPart

protected InputPart extractPart(org.apache.james.mime4j.message.BodyPart bodyPart)
                         throws java.io.IOException
Throws:
java.io.IOException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2010. All Rights Reserved.