Class ListMultipartReader

  • All Implemented Interfaces:
    jakarta.ws.rs.ext.MessageBodyReader<List<?>>

    @Provider
    @Consumes("multipart/*")
    public class ListMultipartReader
    extends Object
    implements jakarta.ws.rs.ext.MessageBodyReader<List<?>>
    Version:
    $Revision: 1 $
    Author:
    Bill Burke
    • Field Detail

      • workers

        @Context
        protected jakarta.ws.rs.ext.Providers workers
    • Constructor Detail

      • ListMultipartReader

        public ListMultipartReader()
    • Method Detail

      • isReadable

        public boolean isReadable​(Class<?> type,
                                  Type genericType,
                                  Annotation[] annotations,
                                  jakarta.ws.rs.core.MediaType mediaType)
        Specified by:
        isReadable in interface jakarta.ws.rs.ext.MessageBodyReader<List<?>>
      • readFrom

        public List<?> readFrom​(Class<List<?>> type,
                                Type genericType,
                                Annotation[] annotations,
                                jakarta.ws.rs.core.MediaType mediaType,
                                jakarta.ws.rs.core.MultivaluedMap<String,​String> httpHeaders,
                                InputStream entityStream)
                         throws IOException,
                                jakarta.ws.rs.WebApplicationException
        Specified by:
        readFrom in interface jakarta.ws.rs.ext.MessageBodyReader<List<?>>
        Throws:
        IOException
        jakarta.ws.rs.WebApplicationException