I would like to intercept the request/response query param, how can I do that using jersey?
Something like for JSON:
@Provider
public class ObjectMapperContextResolver implements ContextResolver<ObjectMapper> {
//...
}
Bean Param:
public class FooQueryParam {
@QueryParam(value = "color")
private Color color;
public Color getColor() {
return color;
}
public void setStatus(Color Color) {
this.color = color;
}
}
The resource:
public Response get(@BeanParam FooQueryParam fooQueryParam) {
//...
}