/*
* 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.
*
*/
// SDAAdvert.java: Server Side DAAdvert Message.
// Author: James Kempf
// Created On: Tue Feb 10 15:00:39 1998
// Last Modified By: James Kempf
// Last Modified On: Tue Nov 17 12:12:18 1998
// Update Count: 82
//
/**
* The SDAAdvert class models the SLP DAAdvert message.
*
* @author James Kempf
*/
short xid,
long timestamp,
throws ServiceLocationException {
// Note that we don't need a server side header here because
// we will not be parsing anything in.
try {
} catch (CloneNotSupportedException ex) {
// We know it's supported.
}
}
// Initialize the message.
void
throws ServiceLocationException {
throw
"sdaadv_nondaurl",
new Object[] {serviceType});
}
if (timestamp < 0) {
throw
"sdaadv_neg",
new Object[0]);
}
// Validate scope list.
// Escape scope strings.
// Parse out the payload.
// Parse out the timestamp
// Parse out the URL.
// Parse out the scope list.
byte[] scopeBytes =
// Parse out the attributes.
url.getLifetime(),
false,
null,
baos,
false);
// Parse out SPI list
// First get DA SPIs from DA SPIs property
}
}
// Parse out auth block, if necessary.
// None of the strings have leading length fields, so add them here
abaos = new ByteArrayOutputStream();
abaos = new ByteArrayOutputStream();
abaos = new ByteArrayOutputStream();
auth =
// Parse out auth blocks.
} else {
}
// Save bytes.
"\n");
}
// Put out the lower 32 bits of the timestamp.
static private void
}
}