org.jboss.resteasy.plugins.providers.multipart
Interface InputPart
- All Known Implementing Classes:
- MultipartInputImpl.PartImpl
public interface InputPart
Represents one part of a multipart message.
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
Field Summary |
static java.lang.String |
DEFAULT_CONTENT_TYPE_PROPERTY
If no content-type header is sent in a multipart message part
"text/plain; charset=ISO-8859-1" is assumed. |
DEFAULT_CONTENT_TYPE_PROPERTY
static final java.lang.String DEFAULT_CONTENT_TYPE_PROPERTY
- If no content-type header is sent in a multipart message part
"text/plain; charset=ISO-8859-1" is assumed.
This can be overwritten by setting a different String value in
HttpRequest.setAttribute(String, Object)
with this ("resteasy.provider.multipart.inputpart.defaultContentType")
String as key. It should be done in a
PreProcessInterceptor
.
- See Also:
- Constant Field Values
getHeaders
MultivaluedMap<java.lang.String,java.lang.String> getHeaders()
- Returns:
- headers of this part
getBodyAsString
java.lang.String getBodyAsString()
throws java.io.IOException
- Throws:
java.io.IOException
getBody
<T> T getBody(java.lang.Class<T> type,
java.lang.reflect.Type genericType)
throws java.io.IOException
- Throws:
java.io.IOException
getBody
<T> T getBody(GenericType<T> type)
throws java.io.IOException
- Throws:
java.io.IOException
getMediaType
MediaType getMediaType()
- Returns:
- "Content-Type" of this part
isContentTypeFromMessage
boolean isContentTypeFromMessage()
- 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.