146147148149150151152153154155156
tree.addStartElement(pr_message); tree.startContent(); tree.addText("Created " + pipelineUri(id)); tree.addEndElement(); tree.addEndElement(); tree.endDocument(); setStatus(Status.SUCCESS_CREATED); return new StringRepresentation(serialize(tree.getResult(), variant.getMediaType()), variant.getMediaType()); } }
197198199200201202203204205206207
tree.addEndElement(); count += 1; if (count >= limit) { tree.addEndElement(); tree.endDocument(); XdmNode out = tree.getResult(); result.write(out); tree = new TreeWriter(runtime);
828384858687888990
tree.startDocument(step.getNode().getBaseURI()); tree.addStartElement(c_result); tree.startContent(); tree.addText("" + count); tree.addEndElement(); tree.endDocument(); result.write(tree.getResult()); } }
4041424344454647484950
tree.addStartElement(BaseResource.pr_message); tree.startContent(); tree.addText("Bad request: " + exceptionMessage(status.getThrowable())); tree.addEndElement(); tree.addEndElement(); tree.endDocument(); return new StringRepresentation(tree.getResult().toString()); } private String exceptionMessage(Throwable exception) { StructuredQName qCode = null;
225226227228229230231232233234235
} } if (count > 0) { tree.addEndElement(); tree.endDocument(); XdmNode out = tree.getResult(); result.write(out); } }
109110111112113114115116117118119
treeWriter.startContent(); if (doc != null) { treeWriter.addSubtree(doc); } treeWriter.addEndElement(); treeWriter.endDocument(); step.reportError(treeWriter.getResult()); if (doc == null) { throw new XProcException(errorCode);
949596979899100101102103
tree.addText(data); tree.addEndElement(); } } tree.endDocument(); result.write(tree.getResult()); } }
161162163164165166167168169170171
if (v != null) { req.addAttribute(name, v.getString()); } } req.startContent(); req.addEndElement(); req.endDocument(); inputPipe.write(req.getResult()); httpReq.run();
123124125126127128129130131132
} catch (IOException ioe) { throw new XProcException(ioe); } tree.addEndElement(); tree.endDocument(); result.write(tree.getResult()); } }
8586878889909192939495
tree.startContent(); tree.addText(uri.toASCIIString()); tree.addEndElement(); tree.endDocument(); result.write(tree.getResult()); } }); } catch (FileNotFoundException fnfe) {