@Provider @Consumes(value="multipart/*") public class MultipartFormDataEntityProvider extends Object implements EntityProvider<Iterator<org.apache.commons.fileupload.FileItem>>
| Constructor and Description |
|---|
MultipartFormDataEntityProvider() |
| Modifier and Type | Method and Description |
|---|---|
long |
getSize(Iterator<org.apache.commons.fileupload.FileItem> t,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
Iterator<org.apache.commons.fileupload.FileItem> |
readFrom(Class<Iterator<org.apache.commons.fileupload.FileItem>> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
InputStream entityStream) |
void |
writeTo(Iterator<org.apache.commons.fileupload.FileItem> t,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isReadable in interface javax.ws.rs.ext.MessageBodyReader<Iterator<org.apache.commons.fileupload.FileItem>>public Iterator<org.apache.commons.fileupload.FileItem> readFrom(Class<Iterator<org.apache.commons.fileupload.FileItem>> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException
readFrom in interface javax.ws.rs.ext.MessageBodyReader<Iterator<org.apache.commons.fileupload.FileItem>>IOExceptionpublic long getSize(Iterator<org.apache.commons.fileupload.FileItem> t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
getSize in interface javax.ws.rs.ext.MessageBodyWriter<Iterator<org.apache.commons.fileupload.FileItem>>public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<Iterator<org.apache.commons.fileupload.FileItem>>public void writeTo(Iterator<org.apache.commons.fileupload.FileItem> t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<Iterator<org.apache.commons.fileupload.FileItem>>IOExceptionCopyright © 2012–2016 Codenvy, S.A.. All rights reserved.