use of org.openremote.container.json.ModelValueMessageBodyConverter in project openremote by openremote.
the class AbstractHttpServerProtocol method init.
@Override
public void init(Container container) throws Exception {
super.init(container);
this.container = container;
this.devMode = container.isDevMode();
identityService = container.hasService(IdentityService.class) ? container.getService(IdentityService.class) : null;
webService = container.getService(WebService.class);
if (defaultResteasyExceptionMapper == null) {
defaultResteasyExceptionMapper = new WebServiceExceptions.DefaultResteasyExceptionMapper(devMode);
forbiddenResteasyExceptionMapper = new WebServiceExceptions.ForbiddenResteasyExceptionMapper(devMode);
undertowExceptionHandler = new WebServiceExceptions.ServletUndertowExceptionHandler(devMode);
jacksonConfig = new JacksonConfig();
modelValueMessageBodyConverter = new ModelValueMessageBodyConverter();
alreadtGzippedWriterInterceptor = new AlreadyGzippedWriterInterceptor();
clientErrorExceptionHandler = new ClientErrorExceptionHandler();
}
}
Aggregations