} catch (UnsupportedEncodingException e) {
throw new ServletException(e);
}
- baseTemplate = new Template(Gigi.class.getResource("Gigi.templ"));
rootMenu = new MenuCollector();
Menu languages = new Menu("Language");
private static Gigi instance;
- private Template baseTemplate;
+ private static final Template baseTemplate = new Template(Gigi.class.getResource("Gigi.templ"));;
private PingerDaemon pinger;
public class AssurancesDisplay implements Outputable {
- private static Template template;
+ private static final Template template = new Template(AssurancesDisplay.class.getResource("AssurancesDisplay.templ"));
private boolean assurer;
public String assuranceArray;
- static {
- template = new Template(AssurancesDisplay.class.getResource("AssurancesDisplay.templ"));
- }
-
public AssurancesDisplay(String assuranceArray, boolean assurer) {
this.assuranceArray = assuranceArray;
this.assurer = assurer;
public class ClientCSRGenerate {
- private static Template normal;
-
- static {
- normal = new Template(ClientCSRGenerate.class.getResource("ClientCSRGenerate.templ"));
- }
+ private static final Template normal = new Template(ClientCSRGenerate.class.getResource("ClientCSRGenerate.templ"));
public static void output(HttpServletRequest req, HttpServletResponse resp) {
HashMap<String, Object> vars = new HashMap<String, Object>();
public class MainPage extends Page {
- Template notLog = new Template(MainPage.class.getResource("MainPageNotLogin.templ"));
+ private static final Template notLog = new Template(MainPage.class.getResource("MainPageNotLogin.templ"));
public MainPage() {
super("Home");
public static class PasswordResetForm extends Form {
- private static Template t = new Template(PasswordResetForm.class.getResource("PasswordResetForm.templ"));
+ private static final Template t = new Template(PasswordResetForm.class.getResource("PasswordResetForm.templ"));
private User u;
this.target = target;
}
- private static Template t;
- static {
- t = new Template(ChangePasswordPage.class.getResource("ChangePasswordForm.templ"));
- }
+ private static final Template t = new Template(ChangePasswordPage.class.getResource("ChangePasswordForm.templ"));
@Override
public void outputContent(PrintWriter out, Language l, Map<String, Object> vars) {
public static final String PATH = "/account/find-agent";
- private static Template t;
- static {
- t = new Template(ChangePasswordPage.class.getResource("FindAgentAccess.templ"));
- }
+ private static final Template t = new Template(ChangePasswordPage.class.getResource("FindAgentAccess.templ"));
@Override
public boolean submit(PrintWriter out, HttpServletRequest req) throws GigiApiException {
public class MyDetailsForm extends Form {
- private static Template assured = new Template(MyDetails.class.getResource("MyDetailsFormAssured.templ"));
+ private static final Template assured = new Template(MyDetails.class.getResource("MyDetailsFormAssured.templ"));
- private static Template templ;
- static {
- templ = new Template(MyDetailsForm.class.getResource("MyDetailsForm.templ"));
- }
+ private static final Template templ = new Template(MyDetailsForm.class.getResource("MyDetailsForm.templ"));
private User target;
target = LoginPage.getAuthorizationContext(hsr);
}
- private static Template template;
-
- static {
- template = new Template(MyOrganisationsForm.class.getResource("MyOrganisationsForm.templ"));
- }
+ private static final Template template = new Template(MyOrganisationsForm.class.getResource("MyOrganisationsForm.templ"));
@Override
public boolean submit(PrintWriter out, HttpServletRequest req) {
public class Certificates extends Page implements HandlesMixedRequest {
- private Template certDisplay = new Template(Certificates.class.getResource("CertificateDisplay.templ"));
+ private static final Template certDisplay = new Template(Certificates.class.getResource("CertificateDisplay.templ"));
public static final String PATH = "/account/certs";
public class DomainPinglogForm extends Form {
- static Template t = new Template(DomainPinglogForm.class.getResource("DomainPinglogForm.templ"));
+ private static final Template t = new Template(DomainPinglogForm.class.getResource("DomainPinglogForm.templ"));
Domain target;
private SSLType[] sslTypes = new SSLType[MAX_SSL_TESTS];
- private final Template t = new Template(PingConfigForm.class.getResource("PingConfigForm.templ"));
+ private static final Template t = new Template(PingConfigForm.class.getResource("PingConfigForm.templ"));
public PingConfigForm(HttpServletRequest hsr, Domain target) throws GigiApiException {
super(hsr);
public class MailAddForm extends Form {
- private static Template t;
+ private static final Template t = new Template(MailAddForm.class.getResource("MailAddForm.templ"));;
private String mail;
- static {
- t = new Template(MailAddForm.class.getResource("MailAddForm.templ"));
- }
private User target;
public class MailManagementForm extends Form {
- private static Template t;
+ private static final Template t = new Template(MailAddForm.class.getResource("MailManagementForm.templ"));
private User target;
- static {
- t = new Template(MailAddForm.class.getResource("MailManagementForm.templ"));
- }
public MailManagementForm(HttpServletRequest hsr, User target) {
super(hsr);
public class TTPAdminForm extends Form {
- private static Template t = new Template(TTPAdminForm.class.getResource("TTPAdminForm.templ"));
+ private static final Template t = new Template(TTPAdminForm.class.getResource("TTPAdminForm.templ"));
User u;
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);
private User users[];
- private static Template t;
- static {
- t = new Template(FindDomainForm.class.getResource("FindUserForm.templ"));
- }
+ private static final Template t = new Template(FindDomainForm.class.getResource("FindUserForm.templ"));
public FindUserForm(HttpServletRequest hsr) {
super(hsr);
public class SupportEnterTicketForm extends Form {
- private static Template t;
-
- static {
- t = new Template(SupportEnterTicketForm.class.getResource("SupportEnterTicketForm.templ"));
- }
+ private static final Template t = new Template(SupportEnterTicketForm.class.getResource("SupportEnterTicketForm.templ"));
public SupportEnterTicketForm(HttpServletRequest hsr) {
super(hsr);
public class SupportRevokeCertificatesForm extends Form {
- private static Template t;
+ private static final Template t = new Template(SupportRevokeCertificatesForm.class.getResource("SupportRevokeCertificatesForm.templ"));
private SupportedUser user;
- static {
- t = new Template(SupportRevokeCertificatesForm.class.getResource("SupportRevokeCertificatesForm.templ"));
- }
public SupportRevokeCertificatesForm(HttpServletRequest hsr, SupportedUser user) {
super(hsr);
public class SupportUserDetailsForm extends Form {
- private static Template t;
+ private static final Template t = new Template(FindDomainForm.class.getResource("SupportUserDetailsForm.templ"));
private SupportedUser user;
private GroupSelector value = new GroupSelector("groupToModify");
- static {
- t = new Template(FindDomainForm.class.getResource("SupportUserDetailsForm.templ"));
- }
-
public SupportUserDetailsForm(HttpServletRequest hsr, SupportedUser user) {
super(hsr);
this.user = user;
String email = "";
- private Template t;
+ private static final Template t = new Template(Signup.class.getResource("Signup.templ"));
boolean general = true, country = true, regional = true, radius = true;
public Signup(HttpServletRequest hsr) {
super(hsr);
- t = new Template(Signup.class.getResource("Signup.templ"));
+
}
DateSelector myDoB = new DateSelector("day", "month", "year");
public class OrgDomainAddForm extends Form {
- public static Template t = new Template(OrgDomainAddForm.class.getResource("OrgDomainAddForm.templ"));
+ private static final Template t = new Template(OrgDomainAddForm.class.getResource("OrgDomainAddForm.templ"));
Organisation target;
public class ViewOrgPage extends Page {
- private final Template orgas = new Template(ViewOrgPage.class.getResource("ViewOrgs.templ"));
+ private static final Template orgas = new Template(ViewOrgPage.class.getResource("ViewOrgs.templ"));
- private final Template mainTempl = new Template(ViewOrgPage.class.getResource("EditOrg.templ"));
+ private static final Template mainTempl = new Template(ViewOrgPage.class.getResource("EditOrg.templ"));
public static final String DEFAULT_PATH = "/orga";
private AssuranceType type = AssuranceType.FACE_TO_FACE;
- private static final Template templ;
- static {
- templ = new Template(AssuranceForm.class.getResource("AssuranceForm.templ"));
- }
+ private static final Template templ = new Template(AssuranceForm.class.getResource("AssuranceForm.templ"));
public AssuranceForm(HttpServletRequest hsr, User assuree) {
super(hsr);
DateSelector ds = new DateSelector("day", "month", "year");
- Template t;
+ private final Template t;
public AssurePage() {
super("Assure someone");
private static void addTicketPage(HashMap<String, Page> pages) {
pages.put("/ticketWait", new Page("ticket") {
- Template t = new Template(DevelLauncher.class.getResource("DevelTicketWait.templ"));
+ private final Template t = new Template(DevelLauncher.class.getResource("DevelTicketWait.templ"));
@Override
public boolean needsLogin() {
private static Manager instance;
- Template t = new Template(Manager.class.getResource("ManagerMails.templ"));
+ private static final Template t = new Template(Manager.class.getResource("ManagerMails.templ"));
HashMap<String, LinkedList<String>> emails = new HashMap<>();
}
}
- private Template form = new Template(Manager.class.getResource("Manager.templ"));
+ private static final Template form = new Template(Manager.class.getResource("Manager.templ"));
@Override
public boolean needsLogin() {