Class MultipartFormAnnotationReader
java.lang.Object
org.jboss.resteasy.plugins.providers.multipart.MultipartFormAnnotationReader
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<Object>
@Provider
@Consumes("multipart/form-data")
public class MultipartFormAnnotationReader
extends Object
implements jakarta.ws.rs.ext.MessageBodyReader<Object>
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isReadable
(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) readFrom
(Class<Object> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream entityStream) protected boolean
setFields
(Class<?> type, MultipartFormDataInputImpl input, Object obj)
-
Field Details
-
workers
@Context protected jakarta.ws.rs.ext.Providers workers
-
-
Constructor Details
-
MultipartFormAnnotationReader
public MultipartFormAnnotationReader()
-
-
Method Details
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isReadable
in interfacejakarta.ws.rs.ext.MessageBodyReader<Object>
-
readFrom
public Object readFrom(Class<Object> 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 interfacejakarta.ws.rs.ext.MessageBodyReader<Object>
- Throws:
IOException
jakarta.ws.rs.WebApplicationException
-
setFields
protected boolean setFields(Class<?> type, MultipartFormDataInputImpl input, Object obj) throws IOException - Throws:
IOException
-