/*
* 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.
*
*/
// CSrvReg.java: Service Registration, Client Side.
// Author: James Kempf
// Created On: Tue Feb 10 12:15:43 1998
// Last Modified By: James Kempf
// Last Modified On: Tue Oct 27 10:57:38 1998
// Update Count: 49
//
/**
* The CSrvReg class models the client side SLP service registration
* message.
*
* @author James Kempf
*/
// Construct a CSrvReg from the arguments. This is the SrvReg for
throws ServiceLocationException {
// We do heavy checking of attributes here so that any registrations
// are correct.
// Verify each attribute, merging duplicates in the vector
// and throwing an error if any duplicates have mismatched types.
for (i = 0; i < n; i++) {
if (!(o instanceof ServiceLocationAttribute)) {
throw
new Object[0]));
}
// Make a new copy of the attribute, so we can modify it.
false);
}
this.initialize(fresh,
}
// Initialize the object. V1 will do it differently.
throws ServiceLocationException {
// Parse out the URL. Ignore overflow.
baos,
false);
// Parse out service type. It may be different from the
// service URL.
// Escape scope strings.
// Parse out the scope list.
// Parse out the attribute list.
baos,
true);
}
}