2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright (c) 1999 by Sun Microsystems, Inc. 2N/A * All rights reserved. 2N/A// Author: James Kempf 2N/A// Created On: Thu Oct 9 13:40:16 1997 2N/A// Last Modified By: James Kempf 2N/A// Last Modified On: Tue Oct 27 10:57:38 1998 2N/A * The SSrvMsg class models the SLP service (request, reply) message 2N/A * server side. Subclasses for other versions can specialize the 2N/A * initialize() and makeReply() methods. 2N/A * @author James Kempf 2N/A // Construct a SSrvMsg from the byte input stream. 2N/A // Initialize the message from the input stream. 2N/A // First get the previous responder. 2N/A // Get the service type. 2N/A "srq_stype_missing",
2N/A // Get vector of scopes. 2N/A // Validate, but check for empty if solicitation for DAAdvert 2N/A // Unescape scope strings. 2N/A " service type=``" +
2N/A // Construct a SSrvMsg from the arguments. This will be a SrvRply 2N/A // for transmission to the client. 2N/A // keep this info so SAs can drop 0 replies 2N/A // Write out the members of the list, including the lifetime. 2N/A // Parse out a URL entry. Check overflow. If the packet has filled 2N/A // up, then break out of the loop. 2N/A // Note that we set overflow here because there are additional 2N/A // URL's, but we don't have to truncate the packet. 2N/A // We need to rewrite the size to what it should be. 2N/A // Construct description. 2N/A " service URLs=``" +
urls +
"''\n" +