Package com.sun.jini.discovery
Interface DelayedMulticastRequestDecoder
- All Superinterfaces:
DiscoveryFormatProvider,MulticastRequestDecoder
Interface implemented by classes which decode multicast request data and additionally support
delayed constraint checking.
- Since:
- 2.1
- Author:
- Sun Microsystems, Inc.
-
Method Summary
Modifier and TypeMethodDescriptiondecodeMulticastRequest(ByteBuffer buf, InvocationConstraints constraints, ClientSubjectChecker checker, boolean delayConstraintCheck) Decodes the multicast request data contained in the given buffer in a manner that satisfies the specified absolute constraints and client subject checker (if any), returning aMulticastRequestinstance that contains the decoded data, with constraint checking optionally delayed.Methods inherited from interface com.sun.jini.discovery.DiscoveryFormatProvider
getFormatNameMethods inherited from interface com.sun.jini.discovery.MulticastRequestDecoder
decodeMulticastRequest
-
Method Details
-
decodeMulticastRequest
MulticastRequest decodeMulticastRequest(ByteBuffer buf, InvocationConstraints constraints, ClientSubjectChecker checker, boolean delayConstraintCheck) throws IOException Decodes the multicast request data contained in the given buffer in a manner that satisfies the specified absolute constraints and client subject checker (if any), returning aMulticastRequestinstance that contains the decoded data, with constraint checking optionally delayed.nullconstraints are considered equivalent to empty constraints. Constraint checking may be delayed using thedelayConstraintCheckflag.If the
delayConstraintCheckflag istrue, the method behaves as follows:- Some of the specified constraints may not be checked before this
method returns; the returned
MulticastRequest'scheckConstraintsmethod must be invoked to complete checking of all the constraints. - Constraints which must be checked before accessor
methods of the returned
MulticastRequestcan be invoked are always checked before this method returns.
delayConstraintCheckisfalse, all the specified constraints are checked before this method returns.- Parameters:
buf- a buffer containing the packet data to decode. The contents ofbufmay be used on subsequent invocations of the returnedMulticastRequestinstance'scheckConstraintsmethod. The caller must ensure that the contents ofbufare not modified before invocation of thecheckConstraintsmethod. Additionally, the multicast request data must begin at position zero ofbuf.constraints- the constraints to apply when decoding the data, ornullchecker- the object to use to check the client subject, ornulldelayConstraintCheck- flag to control delayed constraint checking- Returns:
- the decoded multicast request data
- Throws:
IOException- if an error occurs in interpreting the dataUnsupportedConstraintException- if unable to satisfy the specified constraintsSecurityException- if the given constraints cannot be satisfied due to insufficient caller permissions, or if the client subject check failsNullPointerException- ifbufisnull
- Some of the specified constraints may not be checked before this
method returns; the returned
-