Class MultipartFormAnnotationWriter
- java.lang.Object
-
- org.jboss.resteasy.plugins.providers.multipart.AbstractMultipartWriter
-
- org.jboss.resteasy.plugins.providers.multipart.AbstractMultipartFormDataWriter
-
- org.jboss.resteasy.plugins.providers.multipart.MultipartFormAnnotationWriter
-
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<Object>,AsyncMessageBodyWriter<Object>
@Provider @Produces("multipart/form-data") public class MultipartFormAnnotationWriter extends AbstractMultipartFormDataWriter implements AsyncMessageBodyWriter<Object>- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
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 Constructor Description MultipartFormAnnotationWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionStage<Void>asyncWriteTo(Object obj, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, AsyncOutputStream entityStream)protected voidgetFields(Class<?> type, MultipartFormDataOutput output, Object obj)protected StringgetFilename(AccessibleObject method)longgetSize(Object o, 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(Object obj, 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.AbstractMultipartFormDataWriter
asyncWriteParts, writeParts
-
Methods inherited from class org.jboss.resteasy.plugins.providers.multipart.AbstractMultipartWriter
asyncWrite, asyncWrite, asyncWritePart, asyncWritePart, asyncWriteParts, write, write, writePart, writePart, writeParts
-
-
-
-
Method Detail
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteablein interfacejakarta.ws.rs.ext.MessageBodyWriter<Object>
-
getSize
public long getSize(Object o, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
- Specified by:
getSizein interfacejakarta.ws.rs.ext.MessageBodyWriter<Object>
-
writeTo
public void writeTo(Object obj, 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<Object>- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-
asyncWriteTo
public CompletionStage<Void> asyncWriteTo(Object obj, 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<Object>
-
getFilename
protected String getFilename(AccessibleObject method)
-
getFields
protected void getFields(Class<?> type, MultipartFormDataOutput output, Object obj) throws IOException
- Throws:
IOException
-
-