File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed
src/com/windowsazure/messaging
test/com/windowsazure/messaging Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 77import java .io .ByteArrayInputStream ;
88import java .io .IOException ;
99import java .io .InputStream ;
10+ import java .io .UnsupportedEncodingException ;
11+ import java .net .URLEncoder ;
12+ import java .nio .charset .StandardCharsets ;
1013import java .util .Date ;
1114import java .util .HashMap ;
1215import java .util .LinkedList ;
@@ -232,10 +235,15 @@ public static List<NotificationHubJob> parseCollection(byte[] bodyBytes) throws
232235 public String getXml () {
233236 StringBuilder buf = new StringBuilder ();
234237 buf .append (XML_HEADER );
235- if (this .jobType != null ) buf .append ("<Type>" ).append (this .jobType .name ()).append ("</Type>" );
236- if (this .outputContainerUri != null )
237- buf .append ("<OutputContainerUri>" ).append (this .outputContainerUri ).append ("</OutputContainerUri>" );
238- if (this .importFileUri != null ) buf .append ("<ImportFileUri>" ).append (this .importFileUri ).append ("</ImportFileUri>" );
238+ if (this .jobType != null ) {
239+ buf .append ("<Type>" ).append (this .jobType .name ()).append ("</Type>" );
240+ }
241+ if (this .outputContainerUri != null ) {
242+ buf .append ("<OutputContainerUri><![CDATA[" ).append (this .outputContainerUri ).append ("]]></OutputContainerUri>" );
243+ }
244+ if (this .importFileUri != null ) {
245+ buf .append ("<ImportFileUri>" ).append (this .importFileUri ).append ("</ImportFileUri>" );
246+ }
239247 buf .append (XML_FOOTER );
240248 return buf .toString ();
241249 }
Original file line number Diff line number Diff line change 1+ package com .windowsazure .messaging ;public class NotificationHubSendTest {
2+ }
You can’t perform that action at this time.
0 commit comments