From ab31cd0cd1d988e72d3eed39fe1bedea30a3ae65 Mon Sep 17 00:00:00 2001 From: Doug Keen Date: Sun, 10 Nov 2013 08:50:52 -0800 Subject: [PATCH] Added XML to list of supported REST response content types --- src/com/dougkeen/bart/networktasks/AlertListConverter.java | 1 + src/com/dougkeen/bart/networktasks/ElevatorMessageConverter.java | 1 + 2 files changed, 2 insertions(+) diff --git a/src/com/dougkeen/bart/networktasks/AlertListConverter.java b/src/com/dougkeen/bart/networktasks/AlertListConverter.java index e63127b..ef77bb0 100644 --- a/src/com/dougkeen/bart/networktasks/AlertListConverter.java +++ b/src/com/dougkeen/bart/networktasks/AlertListConverter.java @@ -58,6 +58,7 @@ public class AlertListConverter extends public List getSupportedMediaTypes() { final List supportedMediaTypes = new ArrayList(); supportedMediaTypes.add(MediaType.TEXT_HTML); + supportedMediaTypes.add(MediaType.TEXT_XML); supportedMediaTypes.addAll(super.getSupportedMediaTypes()); return supportedMediaTypes; } diff --git a/src/com/dougkeen/bart/networktasks/ElevatorMessageConverter.java b/src/com/dougkeen/bart/networktasks/ElevatorMessageConverter.java index a3f53d1..85151e3 100644 --- a/src/com/dougkeen/bart/networktasks/ElevatorMessageConverter.java +++ b/src/com/dougkeen/bart/networktasks/ElevatorMessageConverter.java @@ -48,6 +48,7 @@ public class ElevatorMessageConverter extends public List getSupportedMediaTypes() { final List supportedMediaTypes = new ArrayList(); supportedMediaTypes.add(MediaType.TEXT_HTML); + supportedMediaTypes.add(MediaType.TEXT_XML); supportedMediaTypes.addAll(super.getSupportedMediaTypes()); return supportedMediaTypes; }