@Provider public class JsonRequestReader extends Object implements javax.ws.rs.ext.MessageBodyReader<ExecutionRequest>
Modifier and Type | Field and Description |
---|---|
protected static HashMap<String,InputResolver<?>> |
inputResolvers |
static javax.ws.rs.core.MediaType |
targetMediaType |
static javax.ws.rs.core.MediaType |
targetMediaTypeNXReq |
Constructor and Description |
---|
JsonRequestReader() |
Modifier and Type | Method and Description |
---|---|
static void |
addInputResolver(InputResolver<?> resolver) |
CoreSession |
getCoreSession() |
boolean |
isReadable(Class<?> arg0,
Type arg1,
Annotation[] arg2,
javax.ws.rs.core.MediaType arg3) |
ExecutionRequest |
readFrom(Class<ExecutionRequest> arg0,
Type arg1,
Annotation[] arg2,
javax.ws.rs.core.MediaType arg3,
javax.ws.rs.core.MultivaluedMap<String,String> headers,
InputStream in) |
ExecutionRequest |
readRequest(InputStream in,
javax.ws.rs.core.MultivaluedMap<String,String> headers,
CoreSession session) |
static ExecutionRequest |
readRequest(org.codehaus.jackson.JsonParser jp,
javax.ws.rs.core.MultivaluedMap<String,String> headers,
CoreSession session) |
ExecutionRequest |
readRequest(String content,
javax.ws.rs.core.MultivaluedMap<String,String> headers,
CoreSession session) |
ExecutionRequest |
readRequest0(String content,
javax.ws.rs.core.MultivaluedMap<String,String> headers,
CoreSession session) |
static Object |
resolveInput(String input) |
public static final javax.ws.rs.core.MediaType targetMediaTypeNXReq
public static final javax.ws.rs.core.MediaType targetMediaType
protected static final HashMap<String,InputResolver<?>> inputResolvers
public JsonRequestReader()
public CoreSession getCoreSession()
public static void addInputResolver(InputResolver<?> resolver)
public static Object resolveInput(String input) throws IOException
IOException
public boolean isReadable(Class<?> arg0, Type arg1, Annotation[] arg2, javax.ws.rs.core.MediaType arg3)
isReadable
in interface javax.ws.rs.ext.MessageBodyReader<ExecutionRequest>
public ExecutionRequest readFrom(Class<ExecutionRequest> arg0, Type arg1, Annotation[] arg2, javax.ws.rs.core.MediaType arg3, javax.ws.rs.core.MultivaluedMap<String,String> headers, InputStream in) throws IOException, javax.ws.rs.WebApplicationException
readFrom
in interface javax.ws.rs.ext.MessageBodyReader<ExecutionRequest>
IOException
javax.ws.rs.WebApplicationException
public ExecutionRequest readRequest(InputStream in, javax.ws.rs.core.MultivaluedMap<String,String> headers, CoreSession session) throws IOException, javax.ws.rs.WebApplicationException
IOException
javax.ws.rs.WebApplicationException
public ExecutionRequest readRequest(String content, javax.ws.rs.core.MultivaluedMap<String,String> headers, CoreSession session) throws javax.ws.rs.WebApplicationException
javax.ws.rs.WebApplicationException
public ExecutionRequest readRequest0(String content, javax.ws.rs.core.MultivaluedMap<String,String> headers, CoreSession session) throws IOException
IOException
public static ExecutionRequest readRequest(org.codehaus.jackson.JsonParser jp, javax.ws.rs.core.MultivaluedMap<String,String> headers, CoreSession session) throws IOException
jp
- headers
- session
- IOException
Copyright © 2016 Nuxeo SA. All rights reserved.