/*
* 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.
*
*/
// CSrvMsg.java: Message class for SLP service reply.
// Author: James Kempf
// Created On: Thu Oct 9 15:09:32 1997
// Last Modified By: James Kempf
// Last Modified On: Tue Oct 27 11:01:45 1998
// Update Count: 127
//
/**
* The CSrvMsg class models the SLP client side service message.
*
* @author James Kempf
*/
// Only used for testing.
protected CSrvMsg() { }
// Construct a CSrvMsg from the byte input stream. This is a SrvRply.
// error code is already parsed.
throws ServiceLocationException, IOException {
// Don't parse the rest if there's an error.
return;
}
// Note that we ignore the overflow flag here, because the spec
// disallows partial URL entries, and so we should be able
// to parse in the rest of the message even if there is overflow.
// This is different from other messages.
}
// Parse in a vector of service URLs including lifetime.
throws ServiceLocationException, IOException {
// Get the number of service URL's.
// Get the service URL's including lifetime.
for (i = 0; i < n; i++) {
// Verify the signature if any. Doing it here saves muss and
// fuss in the upper layers.
}
}
// Set the header number of replies received.
}
// Construct a CSrvMsg from the arguments.
throws ServiceLocationException {
}
// Initialize as a SLPv2 SrvRqst.
protected void
throws ServiceLocationException {
// Set up for previous responders.
// Create the payload for the message.
// Escape scope strings.
// Retrieve the configured SPI, if any
// There can be only one configured SPI for UAs
}
}
// Write out the service type.
// Write out scopes.
// Write out query.
// Write out SPI
}
//
// Property accessors
//
}
throws IllegalArgumentException {
} else {
}
}
}