/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2006 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: FedLibSystemProperties.java,v 1.7 2008/06/25 05:46:37 qcheng Exp $
*
*/
/*
* Portions Copyrighted [2010] [ForgeRock AS]
*/
/**
* This is the adapter class for Federation Library to the shared library.
* Mainly to provide system configuration information.
*/
"com.sun.identity.fedlet.home";
static {
}
/**
* Creates a new instance of <code>FedLibSystemProperties</code>
*/
public FedLibSystemProperties() {
}
/**
* Returns system properties.
*
* @param key Key to the properties.
*/
}
/**
* Initializes the properties to be used by Open Federation Library.
* Ideally this must be called first before any other method is called
* within Open Federation Library. This method provides a programmatic way
* to set the properties, and will override similar properties if loaded
* for a properties file.
*
* @param properties properties for Open Federation Library
*/
}
private static void initProperties() {
systemConfigProps = new Properties();
try {
while (e.hasMoreElements()) {
}
} catch (MissingResourceException mrex) {
// check if this is the fedlet case, find fedlet home first
if ((fedletHomeDir == null) ||
}
try {
SYSTEM_CONFIG_PROPERTY_NAME + ".properties");
if (loc == 0) {
// dynamically replace TAG
} else if (loc != -1) {
fedletHomeDir.trim() +
}
}
} catch (MissingResourceException ex) {
} catch (FileNotFoundException ffe) {
} catch (IOException ioe) {
}
}
}
/**
* Returns server list.
*
* @return Server List.
* @throws Exception if server list cannot be returned.
*/
throws Exception {
return SystemConfigurationUtil.getServerList();
}
/**
* Returns service all url list.
*
* @return Server List.
* @throws Exception if server list cannot be returned.
*/
throws Exception {
}
/**
* Returns the URL of the specified service on the specified host.
*
* @param serviceName The name of the service.
* @param protocol The service protocol.
* @param hostname The service host name.
* @param port The service listening port.
* @param uri The service URI.
* @return The URL of the specified service on the specified host.
* @throws Exception if the URL could not be found.
*/
int port,
) throws Exception {
return SystemConfigurationUtil.getServiceURL(
}
/**
* Initializes the properties map.
*
* @param propertyName Name of properties.
* @param propertyValue Value of properties.
*/
}
}