Jersey Migration from 1.x to 2.x

179 Views Asked by At

We are migrating our project from jersey 1.X version to 2.X .

public static Filter buildFilter(String s) throws Exception {      
JSONJAXBContext context = new JSONJAXBContext(JSONConfiguration.natural().build(),FilterModel.class);   
JSONUnmarshaller unmarshaller = context.createJSONUnmarshaller();   
FilterModel model = unmarshaller.unmarshalFromJSON(new StringReader(s),
FilterModel.class);      
return model.build();      
  }         

So my question is how we can do the changes and compatible the above code to Jersey 2.X ?

Thanks advance.

0

There are 0 best solutions below