public boolean deleteHandler(HttpServletRequest request) throws Exception { String handlerName = request.getParameter("handlerName"); boolean output; try { output = stub.deleteHandler(handlerName); } catch (Exception e) { if (e instanceof RegistryException) { return false; } else { throw e; } } return output; }
public boolean deleteHandler(String name) throws RemoteException, ExceptionException { try { return handlerManagementServiceStub.deleteHandler(name); } catch (RemoteException e) { String msg = "Fails to delete Handler"; log.error(msg + " " + e.getMessage()); throw new RemoteException(msg, e); } catch (ExceptionException e) { String msg = "Fails to delete Handler"; log.error(msg + " " + e.getMessage()); throw new ExceptionException(msg, e); } }
public boolean deleteHandler(String name) throws RemoteException, ExceptionException { try { return handlerManagementServiceStub.deleteHandler(name); } catch (RemoteException e) { String msg = "Fails to delete Handler"; log.error(msg + " " + e.getMessage()); throw new RemoteException(msg, e); } catch (ExceptionException e) { String msg = "Fails to delete Handler"; log.error(msg + " " + e.getMessage()); throw new ExceptionException(msg, e); } }
public boolean deleteHandler(String name) throws RemoteException, ExceptionException { try { return handlerManagementServiceStub.deleteHandler(name); } catch (RemoteException e) { String msg = "Fails to delete Handler"; log.error(msg + " " + e.getMessage()); throw new RemoteException(msg, e); } catch (ExceptionException e) { String msg = "Fails to delete Handler"; log.error(msg + " " + e.getMessage()); throw new ExceptionException(msg, e); } }