org.jboss.resteasy.plugins.providers.multipart
Class MultipartInputImpl.PartImpl
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultipartInputImpl.PartImpl
public MultipartInputImpl.PartImpl(org.apache.james.mime4j.message.BodyPart bodyPart)
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 © 2010. All Rights Reserved.