"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "moskito-webui/src/main/java/net/anotheria/moskito/webui/shared/resource/ReplyObjectWriter.java" between
moskito-moskito-2.9.3.tar.gz and moskito-moskito-2.10.0.tar.gz

About: MoSKito (Monitoring System Kit) is a framework for java application monitoring. Sources.

ReplyObjectWriter.java  (moskito-moskito-2.9.3):ReplyObjectWriter.java  (moskito-moskito-2.10.0)
skipping to change at line 69 skipping to change at line 69
} }
@Override @Override
public void writeTo(ReplyObject replyObject, Class<?> type, Type genericT ype, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Objec t> httpHeaders, OutputStream entityStream) throws IOException, WebApplicationExc eption { public void writeTo(ReplyObject replyObject, Class<?> type, Type genericT ype, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Objec t> httpHeaders, OutputStream entityStream) throws IOException, WebApplicationExc eption {
try { try {
entityStream.write( entityStream.write(
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>".getBytes("UTF-8") "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>".getBytes("UTF-8")
); );
entityStream.write("<reply>".getBytes()); entityStream.write("<reply>".getBytes());
entityStream.write(("<success>"+replyObject.isSuccessful( )+"</success>").getBytes("UTF-8")); entityStream.write(("<success>"+replyObject.isSuccess()+" </success>").getBytes("UTF-8"));
if (replyObject.getMessage()!=null) if (replyObject.getMessage()!=null)
entityStream.write(("<message>"+replyObject.getMe ssage()+"</message>").getBytes("UTF-8")); entityStream.write(("<message>"+replyObject.getMe ssage()+"</message>").getBytes("UTF-8"));
entityStream.write("<results>".getBytes()); entityStream.write("<results>".getBytes());
HashMap results = replyObject.getResults(); HashMap results = replyObject.getResults();
Set<Map.Entry> resultSet = results.entrySet(); Set<Map.Entry> resultSet = results.entrySet();
JAXBContext context = JAXBContext.newInstance(classesToBe Bound); JAXBContext context = JAXBContext.newInstance(classesToBe Bound);
Marshaller m = context.createMarshaller(); Marshaller m = context.createMarshaller();
m.setProperty("jaxb.fragment", Boolean.TRUE); m.setProperty("jaxb.fragment", Boolean.TRUE);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)