@Provider public class JsonRequestReader extends Object implements MessageBodyReader<ExecutionRequest>
Modifier and Type | Field and Description |
---|---|
static MediaType |
targetMediaType |
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,
MediaType arg3) |
ExecutionRequest |
readFrom(Class<ExecutionRequest> arg0,
Type arg1,
Annotation[] arg2,
MediaType arg3,
MultivaluedMap<String,String> headers,
InputStream in) |
ExecutionRequest |
readRequest(InputStream in,
MultivaluedMap<String,String> headers,
CoreSession session) |
static ExecutionRequest |
readRequest(org.codehaus.jackson.JsonParser jp,
MultivaluedMap<String,String> headers,
CoreSession session) |
ExecutionRequest |
readRequest(String content,
MultivaluedMap<String,String> headers,
CoreSession session) |
ExecutionRequest |
readRequest0(String content,
MultivaluedMap<String,String> headers,
CoreSession session) |
static Object |
resolveInput(String input) |
public static final MediaType targetMediaType
public CoreSession getCoreSession()
public static void addInputResolver(InputResolver<?> resolver)
public boolean isReadable(Class<?> arg0, Type arg1, Annotation[] arg2, MediaType arg3)
isReadable
in interface MessageBodyReader<ExecutionRequest>
public ExecutionRequest readFrom(Class<ExecutionRequest> arg0, Type arg1, Annotation[] arg2, MediaType arg3, MultivaluedMap<String,String> headers, InputStream in) throws IOException, WebApplicationException
readFrom
in interface MessageBodyReader<ExecutionRequest>
IOException
WebApplicationException
public ExecutionRequest readRequest(InputStream in, MultivaluedMap<String,String> headers, CoreSession session) throws IOException, WebApplicationException
IOException
WebApplicationException
public ExecutionRequest readRequest(String content, MultivaluedMap<String,String> headers, CoreSession session) throws WebApplicationException
WebApplicationException
public ExecutionRequest readRequest0(String content, MultivaluedMap<String,String> headers, CoreSession session) throws Exception
Exception
public static ExecutionRequest readRequest(org.codehaus.jackson.JsonParser jp, MultivaluedMap<String,String> headers, CoreSession session) throws Exception
jp
- headers
- session
- Exception
Copyright © 2013 Nuxeo SA. All Rights Reserved.