public interface DelayedMulticastRequestDecoder extends MulticastRequestDecoder
Modifier and Type | Method and Description |
---|---|
MulticastRequest |
decodeMulticastRequest(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 a
MulticastRequest instance
that contains the decoded data, with constraint checking optionally
delayed. |
decodeMulticastRequest
getFormatName
MulticastRequest decodeMulticastRequest(ByteBuffer buf, InvocationConstraints constraints, ClientSubjectChecker checker, boolean delayConstraintCheck) throws IOException
MulticastRequest
instance
that contains the decoded data, with constraint checking optionally
delayed.
null
constraints are
considered equivalent to empty constraints. Constraint checking may be
delayed using the delayConstraintCheck
flag.
If the delayConstraintCheck
flag is true
,
the method behaves as follows:
MulticastRequest
's
checkConstraints
method must be invoked to complete checking of all the constraints.
MulticastRequest
can be invoked are always
checked before this method returns.delayConstraintCheck
is false
, all the
specified constraints are checked before this method returns.buf
- a buffer containing the packet data to decode. The contents
of buf
may be used on subsequent invocations of the returned
MulticastRequest
instance's checkConstraints
method. The caller must ensure that the contents of buf
are
not modified before invocation of the checkConstraints
method. Additionally, the multicast request data must begin at position
zero of buf
.constraints
- the constraints to apply when decoding the data, or
null
checker
- the object to use to check the client subject, or
null
delayConstraintCheck
- flag to control delayed constraint checkingIOException
- 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
- if buf
is null
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.