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 sureGenericEntityclass is used when reading theEntityParts.- Since:
- 3.1.0
-
-
Constructor Summary
Constructors Constructor Description EntityPartReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisReadable(Class<?> type, Type generic, Annotation[] annotations, MediaType mediaType)List<EntityPart>readFrom(Class<List<EntityPart>> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
-
-
-
Method Detail
-
isReadable
public boolean isReadable(Class<?> type, Type generic, Annotation[] annotations, MediaType mediaType)
- Specified by:
isReadablein 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:
readFromin interfaceMessageBodyReader<List<EntityPart>>- Throws:
IOExceptionWebApplicationException
-
-