Search in sources :

Example 1 with ApiResource

use of com.jayway.jsonpath.web.resource.ApiResource in project JsonPath by jayway.

the class Main method createJerseyServlet.

private static ServletContainer createJerseyServlet() throws IOException {
    ResourceConfig resourceConfig = new ResourceConfig();
    resourceConfig.register(JacksonFeature.class);
    resourceConfig.register(new ApiResource());
    return new ServletContainer(resourceConfig);
}
Also used : ApiResource(com.jayway.jsonpath.web.resource.ApiResource) ServletContainer(org.glassfish.jersey.servlet.ServletContainer) ResourceConfig(org.glassfish.jersey.server.ResourceConfig)

Aggregations

ApiResource (com.jayway.jsonpath.web.resource.ApiResource)1 ResourceConfig (org.glassfish.jersey.server.ResourceConfig)1 ServletContainer (org.glassfish.jersey.servlet.ServletContainer)1