Class MultipartProvider

  • All Implemented Interfaces:
    javax.ws.rs.ext.MessageBodyReader<javax.mail.Multipart>, javax.ws.rs.ext.MessageBodyWriter<javax.mail.Multipart>

    @Deprecated
    @Provider
    public class MultipartProvider
    extends java.lang.Object
    implements javax.ws.rs.ext.MessageBodyReader<javax.mail.Multipart>, javax.ws.rs.ext.MessageBodyWriter<javax.mail.Multipart>
    Deprecated.
    Will be removed in next minor release.
    Entity Provider, that reads "multipart/form-data" to a Multipart and writes vice versa.
    This provider is not tested yet.
    See Also:
    FileUploadProvider
    • Constructor Summary

      Constructors 
      Constructor Description
      MultipartProvider()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      long getSize​(javax.mail.Multipart multipart, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
      Deprecated.
       
      boolean isReadable​(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
      Deprecated.
       
      boolean isWriteable​(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
      Deprecated.
       
      javax.mail.Multipart readFrom​(java.lang.Class<javax.mail.Multipart> 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> httpResponseHeaders, java.io.InputStream entityStream)
      Deprecated.
       
      void writeTo​(javax.mail.Multipart multipart, java.lang.Class<?> 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.Object> httpHeaders, java.io.OutputStream entityStream)
      Deprecated.
       
      • Methods inherited from class java.lang.Object

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

      • MultipartProvider

        public MultipartProvider()
        Deprecated.
    • Method Detail

      • getSize

        public long getSize​(javax.mail.Multipart multipart,
                            java.lang.Class<?> type,
                            java.lang.reflect.Type genericType,
                            java.lang.annotation.Annotation[] annotations,
                            javax.ws.rs.core.MediaType mediaType)
        Deprecated.
        Specified by:
        getSize in interface javax.ws.rs.ext.MessageBodyWriter<javax.mail.Multipart>
        See Also:
        javax.ws.rs.ext.MessageBodyWriter#getSize(java.lang.Object)
      • 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<javax.mail.Multipart>
        See Also:
        MessageBodyReader#isReadable(Class, Type, Annotation[])
      • isWriteable

        public boolean isWriteable​(java.lang.Class<?> type,
                                   java.lang.reflect.Type genericType,
                                   java.lang.annotation.Annotation[] annotations,
                                   javax.ws.rs.core.MediaType mediaType)
        Deprecated.
        Specified by:
        isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<javax.mail.Multipart>
        See Also:
        MessageBodyWriter#isWriteable(Class, Type, Annotation[])
      • readFrom

        public javax.mail.Multipart readFrom​(java.lang.Class<javax.mail.Multipart> 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> httpResponseHeaders,
                                             java.io.InputStream entityStream)
                                      throws java.io.IOException
        Deprecated.
        Specified by:
        readFrom in interface javax.ws.rs.ext.MessageBodyReader<javax.mail.Multipart>
        Throws:
        java.io.IOException
        See Also:
        MessageBodyReader.readFrom(Class, Type, Annotation[], MediaType, MultivaluedMap, InputStream)
      • writeTo

        public void writeTo​(javax.mail.Multipart multipart,
                            java.lang.Class<?> 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.Object> httpHeaders,
                            java.io.OutputStream entityStream)
                     throws java.io.IOException
        Deprecated.
        Specified by:
        writeTo in interface javax.ws.rs.ext.MessageBodyWriter<javax.mail.Multipart>
        Throws:
        java.io.IOException
        See Also:
        MessageBodyWriter.writeTo(Object, Class, Type, Annotation[], MediaType, MultivaluedMap, OutputStream)