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
Fields Modifier and Type Field Description protected javax.servlet.http.HttpServletRequest
request
-
Constructor Summary
Constructors Constructor Description MultiPartFormRequestReader()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CoreSession
getCoreSession()
boolean
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)
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)
-
-
-
Method Detail
-
getCoreSession
public CoreSession 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
-
-