Class MultiPartFormRequestReader
java.lang.Object
org.nuxeo.ecm.automation.jaxrs.io.operations.MultiPartFormRequestReader
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<ExecutionRequest>
@Provider
public class MultiPartFormRequestReader
extends Object
implements javax.ws.rs.ext.MessageBodyReader<ExecutionRequest>
- Author:
- Bogdan Stefanescu
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isReadable
(Class<?> arg0, Type arg1, Annotation[] arg2, javax.ws.rs.core.MediaType arg3) static Blob
readBlob
(javax.servlet.http.HttpServletRequest request, javax.mail.BodyPart part) readFrom
(Class<ExecutionRequest> arg0, Type arg1, Annotation[] arg2, javax.ws.rs.core.MediaType arg3, javax.ws.rs.core.MultivaluedMap<String, String> headers, InputStream in)
-
Field Details
-
request
@Context protected javax.servlet.http.HttpServletRequest request
-
-
Constructor Details
-
MultiPartFormRequestReader
public MultiPartFormRequestReader()
-
-
Method Details
-
getCoreSession
-
isReadable
public boolean isReadable(Class<?> arg0, Type arg1, Annotation[] arg2, javax.ws.rs.core.MediaType arg3) - Specified by:
isReadable
in interfacejavax.ws.rs.ext.MessageBodyReader<ExecutionRequest>
-
readFrom
public ExecutionRequest readFrom(Class<ExecutionRequest> arg0, Type arg1, Annotation[] arg2, javax.ws.rs.core.MediaType arg3, javax.ws.rs.core.MultivaluedMap<String, String> headers, InputStream in) throws IOException, javax.ws.rs.WebApplicationException- Specified by:
readFrom
in interfacejavax.ws.rs.ext.MessageBodyReader<ExecutionRequest>
- Throws:
IOException
javax.ws.rs.WebApplicationException
-
readBlob
public static Blob readBlob(javax.servlet.http.HttpServletRequest request, javax.mail.BodyPart part) throws javax.mail.MessagingException, IOException - Throws:
javax.mail.MessagingException
IOException
-