|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jersey.multipart.impl.MultiPartReader
public class MultiPartReader
Provider
MessageBodyReader
implementation for
MultiPart
entities.
Constructor Summary | |
---|---|
MultiPartReader(javax.ws.rs.ext.Providers providers,
MultiPartConfig config,
CloseableService closeableService)
Accept constructor injection of the configuration parameters for this application. |
Method Summary | |
---|---|
boolean |
isReadable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
|
MultiPart |
readFrom(java.lang.Class<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> headers,
java.io.InputStream stream)
Read the entire list of body parts from the Input stream, using the appropriate provider implementation to deserialize each body part's entity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiPartReader(@Context javax.ws.rs.ext.Providers providers, @Context MultiPartConfig config, @Context CloseableService closeableService)
Accept constructor injection of the configuration parameters for this application.
Method Detail |
---|
public boolean isReadable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isReadable
in interface javax.ws.rs.ext.MessageBodyReader<MultiPart>
public MultiPart readFrom(java.lang.Class<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> headers, java.io.InputStream stream) throws java.io.IOException, javax.ws.rs.WebApplicationException
Read the entire list of body parts from the Input stream, using the appropriate provider implementation to deserialize each body part's entity.
readFrom
in interface javax.ws.rs.ext.MessageBodyReader<MultiPart>
type
- The class of the object to be read (i.e. MultiPart
.class)genericType
- The type of object to be writtenannotations
- Annotations on the resource method that returned this objectmediaType
- Media type (multipart/*
) of this entityheaders
- Mutable map of HTTP headers for the entire responsestream
- Output stream to which the entity should be written
java.io.IOException
- if an I/O error occurs
javax.ws.rs.WebApplicationException
- if an HTTP error response
needs to be produced (only effective if the response is not committed yet)
javax.ws.rs.WebApplicationException
- if the Content-Disposition
header of a multipart/form-data
body part cannot be parsed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |