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

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

public class MultipartFormDataInputImpl
extends MultipartInputImpl
implements MultipartFormDataInput

Version:
$Revision: 1 $
Author:
Bill Burke

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jboss.resteasy.plugins.providers.multipart.MultipartInputImpl
MultipartInputImpl.PartImpl
 
Field Summary
protected  java.util.Map<java.lang.String,InputPart> formData
           
protected  java.util.Map<java.lang.String,java.util.List<InputPart>> formDataMap
           
 
Fields inherited from class org.jboss.resteasy.plugins.providers.multipart.MultipartInputImpl
contentType, empty, mimeMessage, parts, workers
 
Constructor Summary
MultipartFormDataInputImpl(MediaType contentType, Providers workers)
           
 
Method Summary
protected  InputPart extractPart(org.apache.james.mime4j.message.BodyPart bodyPart)
           
 java.util.Map<java.lang.String,InputPart> getFormData()
          Deprecated. 
 java.util.Map<java.lang.String,java.util.List<InputPart>> getFormDataMap()
           
<T> T
getFormDataPart(java.lang.String key, java.lang.Class<T> rawType, java.lang.reflect.Type genericType)
           
<T> T
getFormDataPart(java.lang.String key, GenericType<T> type)
           
 
Methods inherited from class org.jboss.resteasy.plugins.providers.multipart.MultipartInputImpl
addHeaderToHeadlessStream, createHeaderInputStream, extractParts, getParts, getPreamble, main, parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.resteasy.plugins.providers.multipart.MultipartInput
getParts, getPreamble
 

Field Detail

formData

protected java.util.Map<java.lang.String,InputPart> formData

formDataMap

protected java.util.Map<java.lang.String,java.util.List<InputPart>> formDataMap
Constructor Detail

MultipartFormDataInputImpl

public MultipartFormDataInputImpl(MediaType contentType,
                                  Providers workers)
Method Detail

getFormData

@Deprecated
public java.util.Map<java.lang.String,InputPart> getFormData()
Deprecated. 

Description copied from interface: MultipartFormDataInput
Will be removed in the future. Use MultipartFormDataInput.getFormDataMap() instead.

Specified by:
getFormData in interface MultipartFormDataInput
Returns:
A parameter map containing only one value per name.

getFormDataMap

public java.util.Map<java.lang.String,java.util.List<InputPart>> getFormDataMap()
Specified by:
getFormDataMap in interface MultipartFormDataInput
Returns:
A parameter map containing a list of values per name.

getFormDataPart

public <T> T getFormDataPart(java.lang.String key,
                             java.lang.Class<T> rawType,
                             java.lang.reflect.Type genericType)
                  throws java.io.IOException
Specified by:
getFormDataPart in interface MultipartFormDataInput
Throws:
java.io.IOException

getFormDataPart

public <T> T getFormDataPart(java.lang.String key,
                             GenericType<T> type)
                  throws java.io.IOException
Specified by:
getFormDataPart in interface MultipartFormDataInput
Throws:
java.io.IOException

extractPart

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


Copyright © 2009. All Rights Reserved.