public class MultipartInputImpl.PartImpl extends Object implements InputPart
DEFAULT_CHARSET_PROPERTY, DEFAULT_CONTENT_TYPE_PROPERTY| Constructor and Description |
|---|
MultipartInputImpl.PartImpl(org.apache.james.mime4j.message.BodyPart bodyPart) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getBody() |
<T> T |
getBody(Class<T> type,
Type genericType) |
<T> T |
getBody(GenericType<T> type) |
String |
getBodyAsString() |
MultivaluedMap<String,String> |
getHeaders() |
MediaType |
getMediaType() |
boolean |
isContentTypeFromMessage() |
void |
setMediaType(MediaType mediaType)
Change the media type of the body part before you extract it.
|
public MultipartInputImpl.PartImpl(org.apache.james.mime4j.message.BodyPart bodyPart)
public void setMediaType(MediaType mediaType)
InputPartsetMediaType in interface InputPartpublic <T> T getBody(Class<T> type, Type genericType) throws IOException
getBody in interface InputPartIOExceptionpublic <T> T getBody(GenericType<T> type) throws IOException
getBody in interface InputPartIOExceptionpublic InputStream getBody() throws IOException
IOExceptionpublic String getBodyAsString() throws IOException
getBodyAsString in interface InputPartIOExceptionpublic MultivaluedMap<String,String> getHeaders()
getHeaders in interface InputPartpublic MediaType getMediaType()
getMediaType in interface InputPartpublic boolean isContentTypeFromMessage()
isContentTypeFromMessage in interface InputPartCopyright © 2013. All Rights Reserved.