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


Constructor Summary
MultipartInputImpl.PartImpl()
           
 
Method Summary
 void addHeader(java.lang.String header)
           
 void endBody(int index)
           
 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()
           
 void startBody(int index)
           
 
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()
Method Detail

getHeaders

public MultivaluedMap<java.lang.String,java.lang.String> getHeaders()
Specified by:
getHeaders in interface InputPart

startBody

public void startBody(int index)

endBody

public void endBody(int index)

addHeader

public void addHeader(java.lang.String header)

getBody

public java.io.InputStream getBody()

getBodyAsString

public java.lang.String getBodyAsString()
Specified by:
getBodyAsString in interface InputPart

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

getMediaType

public MediaType getMediaType()
Specified by:
getMediaType in interface InputPart


Copyright © 2009. All Rights Reserved.