@Provider
@Produces(value="multipart/mixed")
@Consumes(value={"multipart/mixed","multipart/form-data"})
public class MimeMultipartProvider
extends AbstractEntityProvider<javax.mail.internet.MimeMultipart>
MimeMultipart as a method
parameter or a return value and the| Constructor and Description |
|---|
MimeMultipartProvider() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
static DataSource |
readDataSource(InputStream in,
javax.ws.rs.core.MediaType mediaType) |
javax.mail.internet.MimeMultipart |
readFrom(Class<javax.mail.internet.MimeMultipart> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
InputStream entityStream)
FIXME Comment this
|
void |
writeTo(javax.mail.internet.MimeMultipart mimeMultipart,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
FIXME Comment this
|
getSizepublic static DataSource readDataSource(InputStream in, javax.ws.rs.core.MediaType mediaType) throws IOException
in - mediaType - IOExceptionpublic boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
type - genericType - annotations - public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
type - genericType - annotations - public javax.mail.internet.MimeMultipart readFrom(Class<javax.mail.internet.MimeMultipart> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException
type - genericType - annotations - mediaType - httpHeaders - entityStream - IOExceptionjavax.ws.rs.WebApplicationExceptionjavax.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,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
throws IOException
mimeMultipart - type - genericType - annotations - mediaType - httpHeaders - entityStream - IOExceptionjavax.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)Copyright © 2016 JBoss by Red Hat. All rights reserved.