use of ca.corefacility.bioinformatics.irida.web.spring.view.NewickFileView in project irida by phac-nml.
the class IridaRestApiWebConfig method defaultViews.
private List<View> defaultViews() {
List<View> views = new ArrayList<>();
MappingJackson2JsonView jsonView = new MappingJackson2JsonView();
jsonView.setPrettyPrint(true);
// add support for serializing Path data
jsonView.getObjectMapper().registerModule(new Jdk7Module());
views.add(jsonView);
Jaxb2Marshaller jaxb2marshaller = new Jaxb2Marshaller();
jaxb2marshaller.setPackagesToScan(new String[] { "ca.corefacility.bioinformatics.irida.web.assembler.resource" });
MarshallingView marshallingView = new MarshallingView(jaxb2marshaller);
views.add(marshallingView);
views.add(new FastaView());
views.add(new FastqView());
views.add(new GenbankView());
views.add(new NewickFileView());
views.add(new CSVView());
return views;
}
Aggregations