/*
* 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) 2001 by Sun Microsystems, Inc.
* All rights reserved.
*
*/
// SSAAdvert.java: Server Side SAAdvert Message.
// Author: James Kempf
// Created On: Tue Feb 10 15:00:39 1998
// Last Modified By: James Kempf
// Last Modified On: Tue Oct 27 10:57:38 1998
// Update Count: 60
//
/**
* The SSAAdvert class models the SLP SAAdvert message.
*
* @author James Kempf
*/
// Construct a SAAdvert from the arguments. This is a server side
// for transmission to the client.
short xid,
throws ServiceLocationException {
// Construct header.
hdr = new SLPServerHeaderV2();
"version_number_error",
}
// Initialize the message.
throws ServiceLocationException {
throw
"ssaadv_nonsaurl",
new Object[] {serviceType});
}
// Validate scope list.
// Escape scope strings.
// Parse out the payload.
// Parse out the URL.
// Parse out the scope list. We need to save the bytes for
// the authblock.
byte[] scopeBytes =
// Parse out the attribute list.
url.getLifetime(),
false,
null,
baos,
false);
// Parse out auth blocks, if necessary.
byte nBlocks = 0;
// None of the strings have leading length fields, so add them here
abaos = new ByteArrayOutputStream();
abaos = new ByteArrayOutputStream();
url.getLifetime());
}
// Parse out number of blocks.
// Parse out blocks, if any.
}
// Save bytes.
// Construct description of outgoing packet for logging.
"\n");
}
}