/*
* CDDL HEADER START
*
* 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 usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 2001 by Sun Microsystems, Inc.
* All rights reserved.
*
*/
// Defaults.java : Defaults for SLP Locator, Advertiser and slpd.
// Author: Erik Guttman
//
/**
* This class gathers all constants used in the package into one place.
*
* @author James Kempf
*/
class Defaults {
// Default header class name for server.
"com.sun.slp.SLPServerHeaderV2";
// Default DA table implementation.
// Character set.
// Service prefix.
// Restricted type for DA table information.
new ServiceType("service:directory-agent.sun");
// Restricted type for SA table information.
new ServiceType("service:service-agent.sun");
// Directory agent URL type.
new ServiceType("service:directory-agent");
// Service agent URL type.
new ServiceType("service:service-agent");
// Service type attribute tag.
// Minimum refresh interval attribute tag.
// These constants are involved in refreshing URLs or aging them out.
// Special naming authority names.
// Default scope name.
// Default DA attributes.
// Default SA attributes.
// DA attribute names.
// Loopback address and name.
// Solaris default config file
static final int[] a_iConvergeTimeout =
{3000, 3000, 3000, 3000, 3000};
static final int[] a_iDADiscoveryTimeout =
{2000, 2000, 2000, 2000, 3000, 4000};
static {
// Get local host. Note that we just use this for the scope
// name, so it doesn't matter if that interface isn't
// taking any requests.
try {
} catch (UnknownHostException ex) {
"resolve_failed",
new Object[] {"localhost"});
}
// Normalize the hostname into just the nodename (as
// opposed to the fully-qualified host name).
if (dot != -1) {
}
// Set default DA table and SA only scopes. On Solaris,
// the SA only scopes consist of the local machine
// name, and the default DA table is SolarisDATable.
// If this were C, there would be an #ifdef SOLARIS
// around this code.
// Set up the vector of restricted types. Restricted types
// are only allowed to be added or deleted through the
// slpd process. They also have no authentication information,
// even if the network is authenticated. This is because
// slpd is running as root and so unless root is compromised
// the information can be trusted.
restrictedTypes = new Vector();
}
}