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 Summary
Constructors Constructor Description RetroCompatibilityParamConverterProvider(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> javax.ws.rs.ext.ParamConverter<T>
getConverter(Class<T> rawType, Type genericType, Annotation[] annotations)
-
-
-
Method Detail
-
getConverter
public <T> javax.ws.rs.ext.ParamConverter<T> getConverter(Class<T> rawType, Type genericType, Annotation[] annotations)
- Specified by:
getConverter
in interfacejavax.ws.rs.ext.ParamConverterProvider
-
-