MCPcopy Create free account
hub / github.com/TrsstProject/trsst / writeTo

Method writeTo

src/main/java/com/trsst/server/TrsstAdapter.java:1497–1503  ·  view source on GitHub ↗
(StreamWriter sw)

Source from the content-addressed store, hash-verified

1495 public ResponseContext getCategories(RequestContext request) {
1496 return new StreamWriterResponseContext(request.getAbdera()) {
1497 protected void writeTo(StreamWriter sw) throws IOException {
1498 sw.startDocument().startCategories(false);
1499 for (String id : persistence.getFeedIds(0, 100)) {
1500 sw.writeCategory(id);
1501 }
1502 sw.endCategories().endDocument();
1503 }
1504 }.setStatus(200).setContentType(Constants.CAT_MEDIA_TYPE);
1505 }
1506

Callers 4

fomToDomMethod · 0.80
encryptElementAESMethod · 0.80
writeEntryMethod · 0.80
pushToServiceMethod · 0.80

Calls 1

getFeedIdsMethod · 0.65

Tested by

no test coverage detected