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

java.lang.Object
  extended by org.jboss.resteasy.plugins.providers.multipart.MultipartInputImpl.PartImpl
All Implemented Interfaces:
InputPart
Enclosing class:
MultipartInputImpl

public class MultipartInputImpl.PartImpl
extends java.lang.Object
implements InputPart


Field Summary
 
Fields inherited from interface org.jboss.resteasy.plugins.providers.multipart.InputPart
DEFAULT_CONTENT_TYPE_PROPERTY
 
Constructor Summary
MultipartInputImpl.PartImpl(org.apache.james.mime4j.message.BodyPart bodyPart)
           
 
Method Summary
 java.io.InputStream getBody()
           
<T> T
getBody(java.lang.Class<T> type, java.lang.reflect.Type genericType)
           
<T> T
getBody(GenericType<T> type)
           
 java.lang.String getBodyAsString()
           
 MultivaluedMap<java.lang.String,java.lang.String> getHeaders()
           
 MediaType getMediaType()
           
 boolean isContentTypeFromMessage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultipartInputImpl.PartImpl

public MultipartInputImpl.PartImpl(org.apache.james.mime4j.message.BodyPart bodyPart)
Method Detail

getBody

public <T> T getBody(java.lang.Class<T> type,
                     java.lang.reflect.Type genericType)
          throws java.io.IOException
Specified by:
getBody in interface InputPart
Throws:
java.io.IOException

getBody

public <T> T getBody(GenericType<T> type)
          throws java.io.IOException
Specified by:
getBody in interface InputPart
Throws:
java.io.IOException

getBody

public java.io.InputStream getBody()
                            throws java.io.IOException
Throws:
java.io.IOException

getBodyAsString

public java.lang.String getBodyAsString()
                                 throws java.io.IOException
Specified by:
getBodyAsString in interface InputPart
Throws:
java.io.IOException

getHeaders

public MultivaluedMap<java.lang.String,java.lang.String> getHeaders()
Specified by:
getHeaders in interface InputPart
Returns:
headers of this part

getMediaType

public MediaType getMediaType()
Specified by:
getMediaType in interface InputPart
Returns:
"Content-Type" of this part

isContentTypeFromMessage

public boolean isContentTypeFromMessage()
Specified by:
isContentTypeFromMessage in interface InputPart
Returns:
true if the Content-Type was resolved from the message, false if it was resolved from the server default


Copyright © 2009. All Rights Reserved.