/*
* 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.
*
*/
// SSrvTypeMsg.java: Message class for SLP service type request
// Author: James Kempf
// Created On: Thu Oct 9 14:29:22 1997
// Last Modified By: James Kempf
// Last Modified On: Tue Oct 27 10:57:38 1998
// Update Count: 101
//
/**
* The SSrvTypeMsg class models the SLP service type request message.
*
* @author James Kempf
*/
// Construct a SSrvTypeMsg from the byte input stream. This will be
// a SrvTypeRqst.
throws ServiceLocationException, IOException {
this.initialize(dis);
}
// Initialize the message.
throws ServiceLocationException, IOException {
// First get the previous responder.
// Now get naming authority.
// Error if equals IANA.
throw
"sstm_iana",
new Object[0]);
}
// Finally get scopes.
// Construct description.
" naming authority=``" +
namingAuthority + "''\n");
}
// Parse a naming authority name and verify.
protected String
throws ServiceLocationException, IOException {
int len = 0;
// Handle the special cases of no naming authority or
// all authorities.
if (len == 0) {
return "";
} else if (len == 0xFFFF) {
return Defaults.ALL_AUTHORITIES;
}
// Convert to string.
// Validate.
return name;
}
// Construct a SSrvTypeMsg from the arguments. This will be a
// SrvTypeRply for transmission to client.
throws ServiceLocationException {
// Construct payload.
// Construct description.
return hdr;
}
}