Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.automation.server.jaxrs.io
Class MultiPartFormRequestReader

java.lang.Object
  extended by org.nuxeo.ecm.automation.server.jaxrs.io.MultiPartFormRequestReader
All Implemented Interfaces:
MessageBodyReader<ExecutionRequest>

@Provider
public class MultiPartFormRequestReader
extends Object
implements MessageBodyReader<ExecutionRequest>

Author:
Bogdan Stefanescu

Constructor Summary
MultiPartFormRequestReader()
           
 
Method Summary
 boolean isReadable(Class<?> arg0, Type arg1, Annotation[] arg2, MediaType arg3)
           
static Blob readBlob(HttpServletRequest request, BodyPart part)
           
 ExecutionRequest readFrom(Class<ExecutionRequest> arg0, Type arg1, Annotation[] arg2, MediaType arg3, MultivaluedMap<String,String> headers, InputStream in)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiPartFormRequestReader

public MultiPartFormRequestReader()
Method Detail

isReadable

public boolean isReadable(Class<?> arg0,
                          Type arg1,
                          Annotation[] arg2,
                          MediaType arg3)
Specified by:
isReadable in interface MessageBodyReader<ExecutionRequest>

readFrom

public ExecutionRequest readFrom(Class<ExecutionRequest> arg0,
                                 Type arg1,
                                 Annotation[] arg2,
                                 MediaType arg3,
                                 MultivaluedMap<String,String> headers,
                                 InputStream in)
                          throws IOException,
                                 WebApplicationException
Specified by:
readFrom in interface MessageBodyReader<ExecutionRequest>
Throws:
IOException
WebApplicationException

readBlob

public static Blob readBlob(HttpServletRequest request,
                            BodyPart part)
                     throws Exception
Throws:
Exception

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.