Class MultipartRelatedWriter
java.lang.Object
org.jboss.resteasy.plugins.providers.multipart.AbstractMultipartWriter
org.jboss.resteasy.plugins.providers.multipart.AbstractMultipartRelatedWriter
org.jboss.resteasy.plugins.providers.multipart.MultipartRelatedWriter
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<MultipartRelatedOutput>,AsyncMessageBodyWriter<MultipartRelatedOutput>
@Provider
@Produces("multipart/related")
public class MultipartRelatedWriter
extends AbstractMultipartRelatedWriter
implements AsyncMessageBodyWriter<MultipartRelatedOutput>
The
MessageBodyWriter implementation to serialize
MultipartRelatedOutput objects.- Version:
- $Revision: 1 $
- Author:
- Attila Kiraly
-
Field Summary
Fields inherited from class org.jboss.resteasy.plugins.providers.multipart.AbstractMultipartWriter
COLON_SPACE_BYTES, DOUBLE_DASH_BYTES, LINE_SEPARATOR_BYTES, workers -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasyncWriteTo(MultipartRelatedOutput multipartRelatedOutput, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, AsyncOutputStream entityStream) longgetSize(MultipartRelatedOutput multipartRelatedOutput, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) booleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) voidwriteTo(MultipartRelatedOutput multipartRelatedOutput, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) Methods inherited from class org.jboss.resteasy.plugins.providers.multipart.AbstractMultipartRelatedWriter
asyncWriteRelated, writeRelatedMethods inherited from class org.jboss.resteasy.plugins.providers.multipart.AbstractMultipartWriter
asyncWrite, asyncWrite, asyncWritePart, asyncWritePart, asyncWriteParts, asyncWriteParts, write, write, writePart, writePart, writeParts, writeParts
-
Constructor Details
-
MultipartRelatedWriter
public MultipartRelatedWriter()
-
-
Method Details
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isWriteablein interfacejakarta.ws.rs.ext.MessageBodyWriter<MultipartRelatedOutput>
-
getSize
public long getSize(MultipartRelatedOutput multipartRelatedOutput, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
getSizein interfacejakarta.ws.rs.ext.MessageBodyWriter<MultipartRelatedOutput>
-
writeTo
public void writeTo(MultipartRelatedOutput multipartRelatedOutput, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException- Specified by:
writeToin interfacejakarta.ws.rs.ext.MessageBodyWriter<MultipartRelatedOutput>- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-
asyncWriteTo
public CompletionStage<Void> asyncWriteTo(MultipartRelatedOutput multipartRelatedOutput, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, AsyncOutputStream entityStream) - Specified by:
asyncWriteToin interfaceAsyncMessageBodyWriter<MultipartRelatedOutput>
-