if (approveRegex.matcher(email).matches()) {
dos.writeUTF("OK");
} else {
- dos.writeUTF("FAIL");
+ dos.writeUTF(error);
}
dos.flush();
} else if (type.equals("ping")) {
}
+ String error = "FAIL";
+
+ public void setEmailCheckError(String error) {
+ this.error = error;
+ }
+
Pattern approveRegex = Pattern.compile(".*");
public void setApproveRegex(Pattern approveRegex) {
public void reset() {
clearMails();
+ error = "FAIL";
approveRegex = Pattern.compile(".*");
}