Revision a0f27d8b
Added by Cherian Mathew over 10 years ago
cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/view/XmlView.java | ||
---|---|---|
8 | 8 |
import javax.xml.transform.stream.StreamResult; |
9 | 9 |
|
10 | 10 |
import org.springframework.beans.factory.annotation.Autowired; |
11 |
import org.springframework.beans.factory.annotation.Qualifier; |
|
11 | 12 |
import org.springframework.oxm.Marshaller; |
12 | 13 |
import org.springframework.web.servlet.view.AbstractView; |
13 | 14 |
|
... | ... | |
40 | 41 |
} |
41 | 42 |
|
42 | 43 |
@Autowired |
44 |
@Qualifier("marshaller") |
|
43 | 45 |
public void setMarshaller(Marshaller marshaller) { |
44 | 46 |
this.marshaller = marshaller; |
45 | 47 |
} |
Also available in: Unified diff
remote.xml : added simple rdf marshaller (named rdfMarshaller) for the web service rdf responses
RdfViewTest, OaiPmhViewTest : changed SpringBeanByType annotation to SpringBeanByName since we have now two marshallers (remote.xml)
RdfView, XmlView, OaiPmhResponseView : added qualifier for autowired marshaller since we now have two marshallers (remote.xml)
RdfView : added implementation for marshalling (recognised) rdf objects
RdfViewTest : added test for marshalling NameInformationRdf
mappings.xml : addedd dozer mappings for mapping fields from NameInformation to NameInformationRdf
TDWGNamespacePrefixMapper : added new namespaces, including our own
cdmlib-remote-servlet.xml : added new rdf view to configuration
NameCatalogueController : added call to deproxy NonViralName
TaxonConcept : made HasRelationship fields public since it can be potentially used in other classes