package org.cacert.gigi.pages.admin.support;
import java.io.PrintWriter;
-import java.util.Arrays;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
private CertificateOwner res = null;
- private static Template t;
- static {
- t = new Template(FindDomainForm.class.getResource("FindDomainForm.templ"));
- }
+ private static final Template t = new Template(FindDomainForm.class.getResource("FindDomainForm.templ"));
public FindDomainForm(HttpServletRequest hsr) {
super(hsr);
try {
d = Domain.getById(Integer.parseInt(request.substring(1)));
} catch (IllegalArgumentException e) {
- throw (new GigiApiException(new SprintfCommand("No personal domains found matching the id %s", Arrays.asList(request.substring(1)))));
+ throw new GigiApiException(SprintfCommand.createSimple("No personal domains found matching the id {0}", request.substring(1)));
}
} else {
d = Domain.searchUserIdByDomain(request);
}
if (d == null) {
- throw (new GigiApiException(new SprintfCommand("No personal domains found matching %s", Arrays.asList(request))));
+ throw new GigiApiException(SprintfCommand.createSimple("No personal domains found matching {0}", request));
}
res = d.getOwner();
return true;