|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.resteasy.plugins.providers.AbstractEntityProvider<javax.mail.internet.MimeMultipart> org.jboss.resteasy.plugins.providers.multipart.MimeMultipartProvider
@Provider public class MimeMultipartProvider
A provider to handle multipart representations. This implementation will be
invoked when a method parameter takes a MimeMultipart
as a method
parameter or a return value and the
Constructor Summary | |
---|---|
MimeMultipartProvider()
|
Method Summary | |
---|---|
boolean |
isReadable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType)
Ascertain if the MessageBodyReader can produce an instance of a particular type. |
boolean |
isWriteable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType)
Ascertain if the MessageBodyWriter supports a particular type. |
static javax.activation.DataSource |
readDataSource(java.io.InputStream in,
MediaType mediaType)
|
javax.mail.internet.MimeMultipart |
readFrom(java.lang.Class<javax.mail.internet.MimeMultipart> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<java.lang.String,java.lang.String> httpHeaders,
java.io.InputStream entityStream)
FIXME Comment this |
void |
writeTo(javax.mail.internet.MimeMultipart mimeMultipart,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders,
java.io.OutputStream entityStream)
FIXME Comment this |
Methods inherited from class org.jboss.resteasy.plugins.providers.AbstractEntityProvider |
---|
getSize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MimeMultipartProvider()
Method Detail |
---|
public static javax.activation.DataSource readDataSource(java.io.InputStream in, MediaType mediaType) throws java.io.IOException
in
- mediaType
-
java.io.IOException
public boolean isReadable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType)
MessageBodyReader
type
- genericType
- annotations
- mediaType
- the media type of the HTTP entity, if one is not
specified in the request then application/octet-stream
is
used.
public boolean isWriteable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType)
MessageBodyWriter
type
- genericType
- annotations
- mediaType
- the media type of the HTTP entity.
public javax.mail.internet.MimeMultipart readFrom(java.lang.Class<javax.mail.internet.MimeMultipart> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType, MultivaluedMap<java.lang.String,java.lang.String> httpHeaders, java.io.InputStream entityStream) throws java.io.IOException
type
- genericType
- annotations
- mediaType
- httpHeaders
- entityStream
-
java.io.IOException
WebApplicationException
javax.ws.rs.ext.MessageBodyReader#readFrom(java.lang.Class, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType, javax.ws.rs.core.MultivaluedMap, java.io.InputStream)
public void writeTo(javax.mail.internet.MimeMultipart mimeMultipart, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType, MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders, java.io.OutputStream entityStream) throws java.io.IOException
mimeMultipart
- type
- genericType
- annotations
- mediaType
- httpHeaders
- entityStream
-
java.io.IOException
javax.ws.rs.ext.MessageBodyWriter#writeTo(java.lang.Object, java.lang.Class, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType, javax.ws.rs.core.MultivaluedMap, java.io.OutputStream)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |