Search in sources :

Example 1 with ModelValueMessageBodyConverter

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();
    }
}
Also used : JacksonConfig(org.openremote.container.json.JacksonConfig) ModelValueMessageBodyConverter(org.openremote.container.json.ModelValueMessageBodyConverter)

Aggregations

JacksonConfig (org.openremote.container.json.JacksonConfig)1 ModelValueMessageBodyConverter (org.openremote.container.json.ModelValueMessageBodyConverter)1