/*
* 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.
*
*/
// SLPV1CDAAdvert.java: SLP V1 compatible client side DAAdvert
// Author: James Kempf
// Created On: Fri Oct 9 14:20:16 1998
// Last Modified By: James Kempf
// Last Modified On: Mon Nov 2 15:59:49 1998
// Update Count: 10
//
/**
* The SLPV1CDAAdvert class models the SLP V1 DAAdvert message, client side.
*
* @author James Kempf
*/
// Construct a SLPV1CDAAdvert from the byte input stream.
throws ServiceLocationException, IOException {
// Super initializes it.
}
// Initialize object from input stream.
throws ServiceLocationException, IOException {
// Parse in error code.
// Don't parse the rest if there's an error.
return;
}
// Parse in DA's service URL.
URL =
false,
// Validate the service URL.
throw
"not_right_url",
}
// Parse in the scope list.
// Validate the scope list.
for (i = 0; i < n; i++) {
}
// If they are unscoped and we support unscoped regs, then
// change the scope name to default. We don't check whether we
// support default or not. We actually don't use these at
// the moment, but we still keep track of them in case we
// ever do reg forwarding.
if (config.getAcceptSLPv1UnscopedRegs() &&
}
}
// Can't tell if the DA is going down or not from the advert in V1,
// but it doesn't matter since they won't tell us anyway.
boolean isGoingDown() {
return false;
}
// Return true if the advert was unsolicited.
boolean isUnsolicited() {
return unsolicited;
}
// Set unSolicited flag.
unsolicited = flag;
}
}