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>
ReadsExecutionRequest
from a urlencoded POST (Needed for OAuth calls)- Author:
- Tiry ([email protected])
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.servlet.http.HttpServletRequest
request
-
Constructor Summary
Constructors Constructor Description UrlEncodedFormRequestReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CoreSession
getCoreSession()
boolean
isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
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)
-
-
-
Method Detail
-
getCoreSession
public CoreSession 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
-
-