Step5.java revision 56ed5bbb263838f338eb8afc978091c01a4f2a2b
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2007 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: Step5.java,v 1.9 2009/01/05 23:17:10 veiming Exp $
*
*/
/*
* Portions Copyrighted 2011-2012 ForgeRock AS
*/
/**
* Wizard Step # 5: Site Name, URL and Session HA Failover indicator.
* Session Failover indicator new @since 10.1
*
* This Step should be skipped when installing a secondary instance,
* as this information will be replicated by the underlying store.
*
*/
"clear", this, "clear");
"validateURL", this, "validateURL");
"validateSite", this, "validateSite");
"validateSessionHASFO", this, "validateSessionHASFO");
public Step5() {
}
public void onInit() {
}
}
if (sessionHASFOEnabled == null) {
sessionHASFOEnabled = false;
}
// Add Session HA Failover.
// Initialize our Parent.
super.onInit();
}
/**
* Clear all Site / VIP / Load Balancer Settings
*
* @return boolean indicator to view.
*/
public boolean clear() {
return false;
}
/**
* Validate the Site Name
*
* host= site config name
* port = primary loadURL
* Just a little confusing!
*/
public boolean validateSite() {
boolean returnVal = false;
returnVal = true;
} else {
writeValid("ok.label");
}
return returnVal;
}
/**
* Validate the Site URL
*
* host= site config name
* port = primary loadURL
* Just a little confusing!
*/
public boolean validateURL() {
boolean returnVal = false;
returnVal = true;
} else {
try {
returnVal = true;
returnVal = true;
} else {
writeToResponse("ok");
}
} catch (MalformedURLException m) {
returnVal = true;
}
}
return returnVal;
}
/**
* Validate the Session HA Failover Indicator,
* based upon other required fields.
* @return boolean indicator false, indicates Valid | true, indicates Invalid.
*/
public boolean validateSessionHASFO() {
boolean returnVal = false;
if (sessionHASFOEnabled)
{
// Check to ensure we have a Site Name an a URL only if
// Session HA SFO Enabled.
returnVal = true;
returnVal = true;
} else {
writeValid("ok.label");
}
} else {
// regardless of other fields on form.
writeValid("ok.label");
}
return returnVal;
}
}