try {
initializeRequestHandler(request, response,GDataRequestType.DELETE);
} catch (GDataRequestException e) {
sendError();
return;
}
if(!authenticateAccount(request,AccountRole.ENTRYAMINISTRATOR)){
setError(GDataResponse.UNAUTHORIZED);
sendError();
return;
}
try {
this.service.deleteEntry(this.feedRequest, this.feedResponse);
} catch (ServiceException e) {
LOG.error("Could not process DeleteFeed request - "
+ e.getMessage(), e);
setError(e.getErrorCode());
sendError();
}finally{
closeService();
}