Class UrlEncodedFormRequestReader
java.lang.Object
org.nuxeo.ecm.automation.jaxrs.io.operations.UrlEncodedFormRequestReader
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<ExecutionRequest>
@Provider
public class UrlEncodedFormRequestReader
extends Object
implements javax.ws.rs.ext.MessageBodyReader<ExecutionRequest>
Reads
ExecutionRequest
from a urlencoded POST (Needed for OAuth calls)- Author:
- Tiry ([email protected])
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isReadable
(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) readFrom
(Class<ExecutionRequest> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream entityStream)
-
Field Details
-
request
@Context protected javax.servlet.http.HttpServletRequest request
-
-
Constructor Details
-
UrlEncodedFormRequestReader
public UrlEncodedFormRequestReader()
-
-
Method Details
-
getCoreSession
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) - Specified by:
isReadable
in interfacejavax.ws.rs.ext.MessageBodyReader<ExecutionRequest>
-
readFrom
public ExecutionRequest readFrom(Class<ExecutionRequest> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException- Specified by:
readFrom
in interfacejavax.ws.rs.ext.MessageBodyReader<ExecutionRequest>
- Throws:
IOException
javax.ws.rs.WebApplicationException
-