Class RestJsonProvider
- java.lang.Object
-
- uk.gov.gchq.gaffer.rest.serialisation.ObjectMapperProvider
-
- uk.gov.gchq.gaffer.rest.serialisation.RestJsonProvider
-
- All Implemented Interfaces:
javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
@Provider public class RestJsonProvider extends ObjectMapperProvider implements javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
AContextResolver
implementation to provide theObjectMapper
from JSONSerialiser. The JSONSerialiser and ObjectMapper can be configured by System Properties, see JSONSerialiser
-
-
Constructor Summary
Constructors Constructor Description RestJsonProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.ObjectMapper
getContext(Class<?> aClass)
-
Methods inherited from class uk.gov.gchq.gaffer.rest.serialisation.ObjectMapperProvider
getObjectMapper
-
-
-
-
Method Detail
-
getContext
public com.fasterxml.jackson.databind.ObjectMapper getContext(Class<?> aClass)
- Specified by:
getContext
in interfacejavax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
-
-