@Provider public class UrlEncodedFormRequestReader extends Object implements javax.ws.rs.ext.MessageBodyReader<ExecutionRequest>
ExecutionRequest
from a urlencoded POST (Needed for OAuth calls)Modifier and Type | Field and Description |
---|---|
protected javax.servlet.http.HttpServletRequest |
request |
Constructor and Description |
---|
UrlEncodedFormRequestReader() |
Modifier and Type | Method and 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) |
@Context protected javax.servlet.http.HttpServletRequest request
public UrlEncodedFormRequestReader()
public CoreSession getCoreSession()
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isReadable
in interface javax.ws.rs.ext.MessageBodyReader<ExecutionRequest>
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
readFrom
in interface javax.ws.rs.ext.MessageBodyReader<ExecutionRequest>
IOException
javax.ws.rs.WebApplicationException
Copyright © 2015 Nuxeo SA. All rights reserved.