Search in sources :

Example 1 with GenbankView

use of ca.corefacility.bioinformatics.irida.web.spring.view.GenbankView 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;
}
Also used : GenbankView(ca.corefacility.bioinformatics.irida.web.spring.view.GenbankView) FastqView(ca.corefacility.bioinformatics.irida.web.spring.view.FastqView) CSVView(ca.corefacility.bioinformatics.irida.web.spring.view.CSVView) ArrayList(java.util.ArrayList) Jdk7Module(com.fasterxml.jackson.datatype.jdk7.Jdk7Module) MarshallingView(org.springframework.web.servlet.view.xml.MarshallingView) NewickFileView(ca.corefacility.bioinformatics.irida.web.spring.view.NewickFileView) Jaxb2Marshaller(org.springframework.oxm.jaxb.Jaxb2Marshaller) FastaView(ca.corefacility.bioinformatics.irida.web.spring.view.FastaView) GenbankView(ca.corefacility.bioinformatics.irida.web.spring.view.GenbankView) MappingJackson2JsonView(org.springframework.web.servlet.view.json.MappingJackson2JsonView) CSVView(ca.corefacility.bioinformatics.irida.web.spring.view.CSVView) FastqView(ca.corefacility.bioinformatics.irida.web.spring.view.FastqView) View(org.springframework.web.servlet.View) NewickFileView(ca.corefacility.bioinformatics.irida.web.spring.view.NewickFileView) MarshallingView(org.springframework.web.servlet.view.xml.MarshallingView) FastaView(ca.corefacility.bioinformatics.irida.web.spring.view.FastaView) MappingJackson2JsonView(org.springframework.web.servlet.view.json.MappingJackson2JsonView)

Aggregations

CSVView (ca.corefacility.bioinformatics.irida.web.spring.view.CSVView)1 FastaView (ca.corefacility.bioinformatics.irida.web.spring.view.FastaView)1 FastqView (ca.corefacility.bioinformatics.irida.web.spring.view.FastqView)1 GenbankView (ca.corefacility.bioinformatics.irida.web.spring.view.GenbankView)1 NewickFileView (ca.corefacility.bioinformatics.irida.web.spring.view.NewickFileView)1 Jdk7Module (com.fasterxml.jackson.datatype.jdk7.Jdk7Module)1 ArrayList (java.util.ArrayList)1 Jaxb2Marshaller (org.springframework.oxm.jaxb.Jaxb2Marshaller)1 View (org.springframework.web.servlet.View)1 MappingJackson2JsonView (org.springframework.web.servlet.view.json.MappingJackson2JsonView)1 MarshallingView (org.springframework.web.servlet.view.xml.MarshallingView)1