@Provider @Produces(value="*/*") public class EnvelopedWriter extends Object implements javax.ws.rs.ext.MessageBodyWriter<EnvelopedOutput>
Modifier and Type | Field and Description |
---|---|
protected javax.ws.rs.ext.Providers |
providers |
Constructor and Description |
---|
EnvelopedWriter() |
Modifier and Type | Method and Description |
---|---|
static javax.mail.internet.MimeBodyPart |
createBodyPart(javax.ws.rs.ext.Providers providers,
SMIMEOutput out) |
long |
getSize(EnvelopedOutput smimeOutput,
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) |
void |
writeTo(EnvelopedOutput out,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> headers,
OutputStream os) |
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<EnvelopedOutput>
public long getSize(EnvelopedOutput smimeOutput, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<EnvelopedOutput>
public void writeTo(EnvelopedOutput out, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> headers, OutputStream os) throws IOException, javax.ws.rs.WebApplicationException
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<EnvelopedOutput>
IOException
javax.ws.rs.WebApplicationException
public static javax.mail.internet.MimeBodyPart createBodyPart(javax.ws.rs.ext.Providers providers, SMIMEOutput out) throws IOException, javax.mail.MessagingException
IOException
javax.mail.MessagingException
Copyright © 2019 JBoss by Red Hat. All rights reserved.