ALF-4296 - tweak how Status.STATUS_GONE is returned from the replication webscripts

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21730 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Nick Burch
2010-08-11 11:52:58 +00:00
parent 53bca43b13
commit af204372ec
2 changed files with 8 additions and 8 deletions

View File

@@ -64,9 +64,9 @@ public class RunningActionDelete extends AbstractActionWebscript
actionTrackingService.requestActionCancellation(action);
// Report it cancelled
throw new WebScriptException(
Status.STATUS_GONE,
"Action cancellation requested"
);
status.setCode(Status.STATUS_GONE);
status.setMessage("Action cancellation requested");
status.setRedirect(true);
return null;
}
}