@Provider @Produces(value="multipart/related") public class MultipartRelatedWriter extends AbstractMultipartRelatedWriter implements javax.ws.rs.ext.MessageBodyWriter<MultipartRelatedOutput>
MessageBodyWriter
implementation to serialize
MultipartRelatedOutput
objects.workers
Constructor and Description |
---|
MultipartRelatedWriter() |
Modifier and Type | Method and Description |
---|---|
long |
getSize(MultipartRelatedOutput multipartRelatedOutput,
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(MultipartRelatedOutput multipartRelatedOutput,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
writeRelated
write, writePart, writeParts
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<MultipartRelatedOutput>
public long getSize(MultipartRelatedOutput multipartRelatedOutput, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<MultipartRelatedOutput>
public void writeTo(MultipartRelatedOutput multipartRelatedOutput, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<MultipartRelatedOutput>
IOException
javax.ws.rs.WebApplicationException
Copyright © 2015 JBoss by Red Hat. All rights reserved.