}
Map<String, Object> data = new HashMap<String, Object>();
data.put("data", new Date(lastExecution.getTime() + 5 * 60 * 1000));
- throw new GigiApiException(new Scope(new SprintfCommand("Reping is only allowed after 5 minutes, yours end at %s.", Arrays.asList("$data")), data));
+ throw new GigiApiException(new Scope(new SprintfCommand("Reping is only allowed after 5 minutes, yours end at {0}.", Arrays.asList("$data")), data));
}
}
HashMap<String, Object> vars = new HashMap<>();
vars.put("SAN", san.getType().toString().toLowerCase() + ":" + san.getName());
error.mergeInto(new GigiApiException(new Scope(new SprintfCommand(//
- "The requested Subject alternate name \"%s\" has been removed.", Arrays.asList("$SAN")), vars)));
+ "The requested Subject alternate name \"{0}\" has been removed.", Arrays.asList("$SAN")), vars)));
}
return filteredSANs;
}
int id = Integer.parseInt(path.substring(1 + PATH.length()));
User u = User.getById(id);
if (u == null || !u.isInGroup(TTP_APPLICANT)) {
- SprintfCommand command = new SprintfCommand("The TTP-request is not available anymore. You might want to go %sback%s.", Arrays.asList("!\"<a href='" + PATH + "'>", "!\"</a>"));
+ SprintfCommand command = new SprintfCommand("The TTP-request is not available anymore. You might want to go {0}back{1}.", Arrays.asList("!\"<a href='" + PATH + "'>", "!\"</a>"));
req.setAttribute(PageNotFound.MESSAGE_ATTRIBUTE, command);
resp.sendError(404);
return;