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