rep.setMediaType(MediaType.APPLICATION_XML);
resp.setEntity(rep);
}
protected void handleRequest(Request req, Response resp, Object obj) {
MassTruncateRequest mtr = (MassTruncateRequest) obj;
try {
if(!mtr.doTruncate(broker, config)) {
throw new RestletException("Truncation failed", Status.SERVER_ERROR_INTERNAL);
}
} catch (IllegalArgumentException e) {
throw new RestletException(e.getMessage(), Status.CLIENT_ERROR_BAD_REQUEST);
} catch (StorageException e) {