Class MultipartRelatedReader
java.lang.Object
org.jboss.resteasy.plugins.providers.multipart.MultipartRelatedReader
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<MultipartRelatedInput>
@Provider
@Consumes("multipart/related")
public class MultipartRelatedReader
extends Object
implements jakarta.ws.rs.ext.MessageBodyReader<MultipartRelatedInput>
The
MessageBodyReader
implementation to deserialize
MultipartRelatedInput
objects.- Version:
- $Revision: 1 $
- Author:
- Attila Kiraly
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isReadable
(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) readFrom
(Class<MultipartRelatedInput> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream entityStream)
-
Field Details
-
workers
@Context protected jakarta.ws.rs.ext.Providers workers
-
-
Constructor Details
-
MultipartRelatedReader
public MultipartRelatedReader()
-
-
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<MultipartRelatedInput>
-
readFrom
public MultipartRelatedInput readFrom(Class<MultipartRelatedInput> 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<MultipartRelatedInput>
- Throws:
IOException
jakarta.ws.rs.WebApplicationException
-