/*
* 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) 1999 by Sun Microsystems, Inc.
* All rights reserved.
*
*/
// SLPV1SSrvReg.java: Message class for SLP service registration request.
// Author: James Kempf
// Created On: Thu Oct 9 14:47:48 1997
// Last Modified By: James Kempf
// Last Modified On: Thu Mar 25 15:30:25 1999
// Update Count: 80
//
/**
* The SLPV1SSrvReg class models the server side SLPv1 service registration.
*
* @author James Kempf
*/
// For identifying scopes.
// Construct a SLPV1SSrvReg from the input stream.
throws ServiceLocationException, IOException {
}
// Initialzie the object from the stream.
throws ServiceLocationException, IOException {
// Parse in the service URL
URL =
true,
// Parse in the attribute list.
// Get the scopes. Note that if there's no scope, the request
// will automatically be rejected as SCOPE_NOT_SUPPORTED.
for (i = 0; i < n; i++) {
for (j = 0; j < m; j++) {
// Must be a string in v1!
if (!(o instanceof String)) {
throw
"v1_scope_format",
}
}
}
}
// If the vector is empty, then add empty string as the scope name.
// This will cause the service table to throw the registration
// as scope not supported. If unscoped regs are supported, then
// change to default scope.
} else {
}
}
// Check if the registration is fresh or not.
// Perform lookup for existing.
// Check scopes.
// If it is registered in the same scopes, then it is considered
// to be the same. Otherwise, it replaces.
}
}
" attribute list=``" +
attrList + "''\n");
}
// Return a SrvAck.
// Construct description.
return hdr;
}
}