Skip to content
This repository has been archived by the owner on Oct 12, 2021. It is now read-only.

Commit

Permalink
Add support for text/xml media type
Browse files Browse the repository at this point in the history
It is treated the same as application/rdf+xml.

See issue #85
  • Loading branch information
jamsden committed Mar 19, 2019
1 parent 3ca51d9 commit 495a949
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -286,6 +286,9 @@ private String getSerializationLanguage(final MediaType baseMediaType) {
mediaPairs.add(new AbstractMap.SimpleEntry<>(OslcMediaType.APPLICATION_XML_TYPE,
FileUtils.langXMLAbbrev));

mediaPairs.add(new AbstractMap.SimpleEntry<>(OslcMediaType.TEXT_XML_TYPE,
RDFLanguages.strLangRDFXML));

for (Map.Entry<MediaType, String> mediaPair : mediaPairs) {
if (baseMediaType.isCompatible(mediaPair.getKey())) {
log.trace("Using '{}' writer for '{}' Accept media type",
Expand Down

0 comments on commit 495a949

Please sign in to comment.