return "";
}
public void validate() throws CruiseControlException {
if (this.getHost() == null) {
throw new CruiseControlException("'host' not specified in configuration file.");
}
if (this.getUsername() == null) {
throw new CruiseControlException("'username' not specified in configuration file.");
}
if (!this.getHandleResolveFails().equalsIgnoreCase(RESOLVE_FAIL_ERROR)
&& !this.getHandleResolveFails().equalsIgnoreCase(RESOLVE_FAIL_WARN)
&& !this.getHandleResolveFails().equalsIgnoreCase(RESOLVE_FAIL_IGNORE)) {
throw new CruiseControlException("'handleResolveFails' attribute invalid."
+ " - valid values are "
+ RESOLVE_FAIL_ERROR + " | "
+ RESOLVE_FAIL_WARN + " | "
+ RESOLVE_FAIL_IGNORE);
}
if (!this.getHandleResolveConflicts().equalsIgnoreCase(RESOLVE_CONFLICTS_ERROR)
&& !this.getHandleResolveConflicts().equalsIgnoreCase(RESOLVE_CONFLICTS_WARN)
&& !this.getHandleResolveConflicts().equalsIgnoreCase(RESOLVE_CONFLICTS_IGNORE)
&& !this.getHandleResolveConflicts().equalsIgnoreCase(RESOLVE_CONFLICTS_RECIPIENT)) {
throw new CruiseControlException("'handleResolveConflicts' attribute invalid"
+ " - valid values are "
+ RESOLVE_CONFLICTS_ERROR + " | "
+ RESOLVE_CONFLICTS_WARN + " | "
+ RESOLVE_CONFLICTS_IGNORE + " | "
+ RESOLVE_CONFLICTS_RECIPIENT);
}
if (!this.getHandleQueryGroupContentFails().equalsIgnoreCase(QUERY_GROUP_CONTENT_FAIL_ERROR)
&& !this.getHandleQueryGroupContentFails().equalsIgnoreCase(QUERY_GROUP_CONTENT_FAIL_WARN)
&& !this.getHandleQueryGroupContentFails().equalsIgnoreCase(QUERY_GROUP_CONTENT_FAIL_IGNORE)) {
throw new CruiseControlException("'handleQueryGroupContentFails' attribute invalid"
+ " - valid values are "
+ QUERY_GROUP_CONTENT_FAIL_ERROR + " | "
+ QUERY_GROUP_CONTENT_FAIL_WARN + " | "
+ QUERY_GROUP_CONTENT_FAIL_IGNORE);
}