Package org.apache.solr.jersey
Class SolrJacksonMapper
- java.lang.Object
-
- org.apache.solr.jersey.SolrJacksonMapper
-
- All Implemented Interfaces:
jakarta.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
@Provider public class SolrJacksonMapper extends Object implements jakarta.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
Customizes the ObjectMapper settings used for serialization/deserialization in Jersey
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SolrJacksonMapper.NamedListSerializer
-
Constructor Summary
Constructors Constructor Description SolrJacksonMapper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.ObjectMapper
getContext(Class<?> type)
static com.fasterxml.jackson.databind.ObjectMapper
getObjectMapper()
-
-
-
Method Detail
-
getContext
public com.fasterxml.jackson.databind.ObjectMapper getContext(Class<?> type)
- Specified by:
getContext
in interfacejakarta.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
-
getObjectMapper
public static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-
-