@Override protected <A extends Action<R>, R extends Result> void prepareUndo(A action) { prepareService((ServiceDefTarget) realService, baseUrl, action.getServiceName()); } }
@Override public void undo(String cookieSentByRPC, Action<Result> action, Result result) throws ActionException, ServiceException { if (action.isSecured() && !cookieMatch(cookieSentByRPC)) { String message = xsrfAttackMessage + " While undoing action: " + action.getClass().getName(); logger.severe(message); throw new ServiceException(message); } try { dispatch.undo(action, result); } catch (ActionException e) { logger.warning("Action exception while undoing " + action.getClass().getName() + ": " + e.getMessage()); throw new ActionException(e.getMessage()); } catch (ServiceException e) { logger.warning("Service exception while undoing " + action.getClass().getName() + ": " + e.getMessage()); throw new ServiceException(e.getMessage()); } catch (RuntimeException e) { logger.warning("Unexpected exception while undoing " + action.getClass().getName() + ": " + e.getMessage()); throw new ServiceException(e.getMessage()); } }
public Result execute(String cookieSentByRPC, Action<?> action) throws ActionException, ServiceException { if (action.isSecured() && !cookieMatch(cookieSentByRPC)) { String message = xsrfAttackMessage + " While executing action: " + action.getClass().getName();
@Override protected <A extends Action<R>, R extends Result> void prepareExecute(A action) { prepareService((ServiceDefTarget) realService, baseUrl, action.getServiceName()); }