/*
* 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.
*
*/
// SLPV1SAttrMsg.java: SLPv1 Attribute request for server.
// Author: James Kempf
// Created On: Fri Sep 11 13:23:28 1998
// Last Modified By: James Kempf
// Last Modified On: Tue Oct 27 10:57:39 1998
// Update Count: 19
//
/**
* The SLPV1SAttrMsg class models the SLP server side attribute message.
*
* @author James Kempf
*/
// For creating null reply.
SLPV1SAttrMsg() {}
// Construct a SLPV1SAttrMsg from the byte input stream. This will
throws ServiceLocationException, IOException {
}
// Construct an empty SLPV1SSrvMsg, for monolingual off.
throws ServiceLocationException {
return msg;
}
throws ServiceLocationException, IOException {
// Parse in the previous responder's list.
// Parse in the URL or service type.
// Decide whether this is a service type or service URL
try {
serviceType = null;
} catch (IllegalArgumentException ex) {
// Check to make sure service type is right.
}
// Parse in the scope and validate it.
// Change unscoped to default.
}
// Parse in the attribute tags.
tags =
// Unescape tags.
for (i = 0; i < n; i++) {
// Check for starting and ending wildcards.
boolean wildcardStart = false;
boolean wildcardEnd = false;
wildcardStart = true;
}
wildcardEnd = true;
}
tag =
if (wildcardStart) {
}
if (wildcardEnd) {
}
}
" " +
("service type=``" + serviceType)) +
"''\n" +
}
// Construct an SAttrMsg payload for reply to client.
throws ServiceLocationException {
// We need to check whether this is an AttrRqst by type and
// if the type was an abstract type. If so, we simply return
// an empty reply, but we print a message to the log so the problem
// can be fixed.
if (serviceType != null) {
for (i = 0; i < n; i++) {
if (ttype.isAbstractType() &&
// We are out of luck!
new Object[] {serviceType,
ttype});
}
}
}
return hdr;
}
}