Class FileUploadProvider

  • All Implemented Interfaces:
    javax.ws.rs.ext.MessageBodyReader<java.util.List<org.apache.commons.fileupload.FileItem>>

    @Deprecated
    @Provider
    public class FileUploadProvider
    extends java.lang.Object
    implements javax.ws.rs.ext.MessageBodyReader<java.util.List<org.apache.commons.fileupload.FileItem>>
    Deprecated.
    Will be removed in next minor release.
    Entity Provider, that reads "multipart/form-data" to a List< FileItem>. It is using the Apache Commons FileUpload (developed with version 1.2), which must be available in the classpath, if you want to use this provider. For more information see the Apache FileUpload website.
    This provider is not tested yet.
    See Also:
    MultipartProvider
    • Constructor Summary

      Constructors 
      Constructor Description
      FileUploadProvider()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean isReadable​(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
      Deprecated.
       
      java.util.List<org.apache.commons.fileupload.FileItem> readFrom​(java.lang.Class<java.util.List<org.apache.commons.fileupload.FileItem>> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.String> respHeaders, java.io.InputStream entityStream)
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileUploadProvider

        public FileUploadProvider()
        Deprecated.
    • Method Detail

      • isReadable

        public boolean isReadable​(java.lang.Class<?> type,
                                  java.lang.reflect.Type genericType,
                                  java.lang.annotation.Annotation[] annotations,
                                  javax.ws.rs.core.MediaType mediaType)
        Deprecated.
        Specified by:
        isReadable in interface javax.ws.rs.ext.MessageBodyReader<java.util.List<org.apache.commons.fileupload.FileItem>>
        See Also:
        MessageBodyReader.isReadable(Class, Type, Annotation[], MediaType)
      • readFrom

        public java.util.List<org.apache.commons.fileupload.FileItem> readFrom​(java.lang.Class<java.util.List<org.apache.commons.fileupload.FileItem>> type,
                                                                               java.lang.reflect.Type genericType,
                                                                               java.lang.annotation.Annotation[] annotations,
                                                                               javax.ws.rs.core.MediaType mediaType,
                                                                               javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.String> respHeaders,
                                                                               java.io.InputStream entityStream)
                                                                        throws java.io.IOException
        Deprecated.
        Specified by:
        readFrom in interface javax.ws.rs.ext.MessageBodyReader<java.util.List<org.apache.commons.fileupload.FileItem>>
        Throws:
        java.io.IOException
        See Also:
        MessageBodyReader.readFrom(Class, Type, Annotation[], MediaType, MultivaluedMap, InputStream)