use of gov.cms.dpc.api.exceptions.JsonParseExceptionMapper in project dpc-app by CMSgov.
the class DPCAPIService method run.
@Override
public void run(final DPCAPIConfiguration configuration, final Environment environment) {
EnvironmentParser.getEnvironment("API");
final var listener = new InstrumentedResourceMethodApplicationListener(environment.metrics());
environment.jersey().getResourceConfig().register(listener);
environment.jersey().register(new AuthValueFactoryProvider.Binder<>(OrganizationPrincipal.class));
environment.jersey().register(new JsonParseExceptionMapper());
environment.jersey().register(new GenerateRequestIdFilter(false));
environment.jersey().register(new LogResponseFilter());
}
Aggregations