public class DomainPingConfiguration implements IdCachable {
- public static enum PingType {
- EMAIL, DNS, HTTP, SSL;
- }
-
private int id;
private Domain target;
- private PingType type;
+ private DomainPingType type;
private String info;
}
this.id = rs.getInt("id");
target = Domain.getById(rs.getInt("domainid"));
- type = PingType.valueOf(rs.getString("type").toUpperCase());
+ type = DomainPingType.valueOf(rs.getString("type").toUpperCase());
info = rs.getString("info");
}
return target;
}
- public PingType getType() {
+ public DomainPingType getType() {
return type;
}