Class EntityPartWriter
java.lang.Object
org.glassfish.jersey.media.multipart.internal.EntityPartWriter
- All Implemented Interfaces:
MessageBodyWriter<List<EntityPart>>
@Produces("multipart/form-data")
@Singleton
public class EntityPartWriter
extends Object
implements MessageBodyWriter<List<EntityPart>>
Writer supporting List<EntityPart> Make sure
GenericEntity
class is used when sending the
EntityPart
s.- Since:
- 3.1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isWriteable
(Class<?> type, Type generic, Annotation[] annotations, MediaType mediaType) void
writeTo
(List<EntityPart> entityParts, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jakarta.ws.rs.ext.MessageBodyWriter
getSize
-
Constructor Details
-
EntityPartWriter
-
-
Method Details
-
isWriteable
public boolean isWriteable(Class<?> type, Type generic, Annotation[] annotations, MediaType mediaType) - Specified by:
isWriteable
in interfaceMessageBodyWriter<List<EntityPart>>
-
writeTo
public void writeTo(List<EntityPart> entityParts, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) throws IOException, WebApplicationException- Specified by:
writeTo
in interfaceMessageBodyWriter<List<EntityPart>>
- Throws:
IOException
WebApplicationException
-