@Override public void execute(ArtifactoryRestRequest request, RestResponse response) { AolUtils.assertNotAol("CreateProxy"); ProxyDescriptor proxyDescriptor = (ProxyDescriptor) request.getImodel(); // add new proxy to configuration addNewProxy(proxyDescriptor); // update response feedback updateResponse(response, proxyDescriptor); }
@Override public void execute(ArtifactoryRestRequest request, RestResponse response) { AolUtils.assertNotAol("RunIndexNow"); BasicStatusHolder statusHolder = new BasicStatusHolder(); try { // run index now runIndexNow(response); } catch (Exception e) { updateErrorFeedBack(response, statusHolder, e); } }