use of com.serotonin.m2m2.web.mvc.rest.v1.converters.CsvQueryArrayStreamMessageConverter in project ma-core-public by infiniteautomation.
the class MangoRestSpringConfiguration method configureMessageConverters.
/**
* Configure the Message Converters for the API for now only JSON
*/
@Override
public void configureMessageConverters(List<HttpMessageConverter<?>> converters) {
converters.add(new ResourceHttpMessageConverter());
converters.add(new MappingJackson2HttpMessageConverter(getObjectMapper()));
converters.add(new CsvMessageConverter());
converters.add(new CsvRowMessageConverter());
converters.add(new CsvQueryArrayStreamMessageConverter());
converters.add(new CsvDataPageQueryStreamMessageConverter());
converters.add(new ByteArrayHttpMessageConverter());
converters.add(new HtmlHttpMessageConverter());
converters.add(new SerotoninJsonMessageConverter());
converters.add(new ExceptionCsvMessageConverter());
// Now is a good time to register our Sero Json Converter
Common.JSON_CONTEXT.addConverter(new AbstractRestModelConverter(), AbstractRestModel.class);
}
Aggregations