Class MultipartProvider
- java.lang.Object
-
- org.restlet.ext.jaxrs.internal.provider.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 aMultipartand 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 longgetSize(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.booleanisReadable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)Deprecated.booleanisWriteable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)Deprecated.javax.mail.MultipartreadFrom(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.voidwriteTo(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.
-
-
-
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:
getSizein interfacejavax.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:
isReadablein interfacejavax.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:
isWriteablein interfacejavax.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.IOExceptionDeprecated.- Specified by:
readFromin interfacejavax.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.IOExceptionDeprecated.- Specified by:
writeToin interfacejavax.ws.rs.ext.MessageBodyWriter<javax.mail.Multipart>- Throws:
java.io.IOException- See Also:
MessageBodyWriter.writeTo(Object, Class, Type, Annotation[], MediaType, MultivaluedMap, OutputStream)
-
-