Class EntityPartReader
java.lang.Object
org.glassfish.jersey.media.multipart.internal.EntityPartReader
- All Implemented Interfaces:
MessageBodyReader<List<EntityPart>>
@Consumes("multipart/form-data")
@Singleton
public class EntityPartReader
extends Object
implements MessageBodyReader<List<EntityPart>>
Reader supporting List<EntityPart> Make sure
GenericEntity
class is used when reading the
EntityPart
s.- Since:
- 3.1.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isReadable
(Class<?> type, Type generic, Annotation[] annotations, MediaType mediaType) readFrom
(Class<List<EntityPart>> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, String> httpHeaders, InputStream entityStream)
-
Constructor Details
-
EntityPartReader
-
-
Method Details
-
isReadable
public boolean isReadable(Class<?> type, Type generic, Annotation[] annotations, MediaType mediaType) - Specified by:
isReadable
in interfaceMessageBodyReader<List<EntityPart>>
-
readFrom
public List<EntityPart> readFrom(Class<List<EntityPart>> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws IOException, WebApplicationException- Specified by:
readFrom
in interfaceMessageBodyReader<List<EntityPart>>
- Throws:
IOException
WebApplicationException
-