(StreamWriter sw)
| 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 |
no test coverage detected