+ public SubmissionResult submit(HttpServletRequest req) throws GigiApiException {
+ CertificateOwner u = LoginPage.getAuthorizationContext(req).getTarget();
+
+ int i = Integer.parseInt(req.getPathInfo().substring(DomainOverview.PATH.length() + 1));
+ Domain d = Domain.getById(i);
+ if (u.getId() != d.getOwner().getId()) {
+ throw new GigiApiException("Error, owner mismatch.");
+ }
+ int reping = Integer.parseInt(req.getParameter("configId"));
+ DomainPingConfiguration dpc = DomainPingConfiguration.getById(reping);
+ if (dpc.getTarget() != d) {
+ throw new GigiApiException("Error, target mismatch.");
+ }
+ dpc.requestReping();
+ return new RedirectResult(req.getPathInfo());