Class MultipartFormDataWriter
- java.lang.Object
-
- org.jboss.resteasy.plugins.providers.multipart.AbstractMultipartWriter
-
- org.jboss.resteasy.plugins.providers.multipart.AbstractMultipartFormDataWriter
-
- org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataWriter
-
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<MultipartFormDataOutput>
,AsyncMessageBodyWriter<MultipartFormDataOutput>
@Provider @Produces("multipart/form-data") public class MultipartFormDataWriter extends AbstractMultipartFormDataWriter implements AsyncMessageBodyWriter<MultipartFormDataOutput>
- 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 MultipartFormDataWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionStage<Void>
asyncWriteTo(MultipartFormDataOutput multipartFormDataOutput, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, AsyncOutputStream entityStream)
long
getSize(MultipartFormDataOutput multipartFormDataOutput, 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(MultipartFormDataOutput multipartFormDataOutput, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.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, asyncWritePart, write, writePart
-
-
-
-
Method Detail
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteable
in interfacejavax.ws.rs.ext.MessageBodyWriter<MultipartFormDataOutput>
-
getSize
public long getSize(MultipartFormDataOutput multipartFormDataOutput, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
getSize
in interfacejavax.ws.rs.ext.MessageBodyWriter<MultipartFormDataOutput>
-
writeTo
public void writeTo(MultipartFormDataOutput multipartFormDataOutput, 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
- Specified by:
writeTo
in interfacejavax.ws.rs.ext.MessageBodyWriter<MultipartFormDataOutput>
- Throws:
IOException
javax.ws.rs.WebApplicationException
-
asyncWriteTo
public CompletionStage<Void> asyncWriteTo(MultipartFormDataOutput multipartFormDataOutput, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, AsyncOutputStream entityStream)
- Specified by:
asyncWriteTo
in interfaceAsyncMessageBodyWriter<MultipartFormDataOutput>
-
-