Class 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 Detail

      • RetroCompatibilityParamConverterProvider

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

      • 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