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