Class RetroCompatibilityParamConverterProvider

java.lang.Object
org.apache.unomi.rest.server.provider.RetroCompatibilityParamConverterProvider
All Implemented Interfaces:
javax.ws.rs.ext.ParamConverterProvider

@Provider public class RetroCompatibilityParamConverterProvider extends Object implements javax.ws.rs.ext.ParamConverterProvider
This is a custom param converter provider only to be able to deserialize correctly objects used by the old servlets. The old servlets was supporting JSON objects passed on GET requests using a parameter named "payload". This only concern: GET /context.js GET /context.json GET /eventcollector And objects: ContextRequest, EventsCollectorRequest
  • Constructor Details

    • RetroCompatibilityParamConverterProvider

      public RetroCompatibilityParamConverterProvider(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
  • Method Details

    • getConverter

      public <T> javax.ws.rs.ext.ParamConverter<T> getConverter(Class<T> rawType, Type genericType, Annotation[] annotations)
      Specified by:
      getConverter in interface javax.ws.rs.ext.ParamConverterProvider