org.nuxeo.ecm.automation.server.jaxrs.io
Class UrlEncodedFormRequestReader
java.lang.Object
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)
UrlEncodedFormRequestReader
public UrlEncodedFormRequestReader()
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
Copyright © 2011 Nuxeo SAS. All Rights Reserved.