try {
initializeRequestHandler(request, response,GDataRequestType.UPDATE);
} catch (GDataRequestException e) {
setError(GDataResponse.UNAUTHORIZED);
sendError();
return;
}
if(!authenticateAccount(request,AccountRole.ENTRYAMINISTRATOR)){
sendError();
return;
}
try {
BaseEntry entry = this.service.updateEntry(this.feedRequest,
this.feedResponse);
setFeedResponseFormat();
this.feedResponse.sendResponse(entry, this.feedRequest.getConfigurator());
}
catch (ServiceException e) {
LOG.error("Could not process UpdateFeed request - "
+ e.getMessage(), e);
setError(e.getErrorCode());
sendError();
}finally{
closeService();
}