Nuxeo ECM Projects 5.4.3-SNAPSHOT

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

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

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

Reads ExecutionRequest from a urlencoded POST (Needed for OAuth calls)

Author:
Tiry (tdelprat@nuxeo.com)

Constructor Summary
UrlEncodedFormRequestReader()
           
 
Method Summary
 boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 ExecutionRequest readFrom(Class<ExecutionRequest> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrlEncodedFormRequestReader

public UrlEncodedFormRequestReader()
Method Detail

isReadable

public boolean isReadable(Class<?> type,
                          Type genericType,
                          Annotation[] annotations,
                          MediaType mediaType)
Specified by:
isReadable in interface MessageBodyReader<ExecutionRequest>

readFrom

public ExecutionRequest readFrom(Class<ExecutionRequest> type,
                                 Type genericType,
                                 Annotation[] annotations,
                                 MediaType mediaType,
                                 MultivaluedMap<String,String> httpHeaders,
                                 InputStream entityStream)
                          throws IOException,
                                 WebApplicationException
Specified by:
readFrom in interface MessageBodyReader<ExecutionRequest>
Throws:
IOException
WebApplicationException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.