2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright (c) 1999 by Sun Microsystems, Inc. 2N/A * All rights reserved. 2N/A// Author: James Kempf 2N/A// Created On: Thu Oct 9 14:47:48 1997 2N/A// Last Modified By: James Kempf 2N/A// Last Modified On: Thu Mar 25 15:30:25 1999 2N/A * The SLPV1SSrvReg class models the server side SLPv1 service registration. 2N/A * @author James Kempf 2N/A // For identifying scopes. 2N/A // Construct a SLPV1SSrvReg from the input stream. 2N/A // Initialzie the object from the stream. 2N/A // Parse in the service URL 2N/A // Parse in the attribute list. 2N/A // Get the scopes. Note that if there's no scope, the request 2N/A // will automatically be rejected as SCOPE_NOT_SUPPORTED. 2N/A for (i =
0; i < n; i++) {
2N/A for (j =
0; j < m; j++) {
2N/A // Must be a string in v1! 2N/A // If the vector is empty, then add empty string as the scope name. 2N/A // This will cause the service table to throw the registration 2N/A // as scope not supported. If unscoped regs are supported, then 2N/A // change to default scope. 2N/A // Check if the registration is fresh or not. 2N/A // Perform lookup for existing. 2N/A // If it is registered in the same scopes, then it is considered 2N/A // to be the same. Otherwise, it replaces. 2N/A " attribute list=``" +
2N/A // Construct description.