super.processRequest(request,response);
if(this.authenticated){
AdminService service = null;
try {
ServerBaseFeed feed = createDeleteFeed(request);
GDataServerRegistry registry = GDataServerRegistry.getRegistry();
ServiceFactory serviceFactory = registry.lookup(ServiceFactory.class,ComponentType.SERVICEFACTORY);
if(serviceFactory == null){
setError(GDataResponse.SERVER_ERROR,"required component is not available");
throw new FeedHandlerException("Can't save feed - ServiceFactory is null");
}
service = serviceFactory.getAdminService();
service.deleteFeed(feed);
} catch (FeedHandlerException e) {
LOG.error("Can not delete feed -- "+e.getMessage(),e);
}catch (ServiceException e) {
LOG.error("Can not delete feed -- "+e.getMessage(),e);
setError(e.getErrorCode(),"can not create feed");
}finally{
if(service != null)
service.close();
}
}
sendResponse(response);