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.HttpServletRequestrequest
-
Constructor Summary
Constructors Constructor Description MultiPartFormRequestReader()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CoreSessiongetCoreSession()booleanisReadable(Class<?> arg0, Type arg1, Annotation[] arg2, javax.ws.rs.core.MediaType arg3)static BlobreadBlob(javax.servlet.http.HttpServletRequest request, javax.mail.BodyPart part)ExecutionRequestreadFrom(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:
isReadablein 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:
readFromin interfacejavax.ws.rs.ext.MessageBodyReader<ExecutionRequest>- Throws:
IOExceptionjavax.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.MessagingExceptionIOException
-
-