public class MatchedValuesControl extends Control
Modifier and Type | Field and Description |
---|---|
static ControlDecoder<MatchedValuesControl> |
DECODER
The Control Decoder that can be used to decode this control.
|
Constructor and Description |
---|
MatchedValuesControl(boolean isCritical,
List<MatchedValuesFilter> filters)
Creates a new matched values control using the default OID and the provided
criticality and set of filters.
|
Modifier and Type | Method and Description |
---|---|
List<MatchedValuesFilter> |
getFilters()
Retrieves the set of filters associated with this matched values control.
|
void |
toString(StringBuilder buffer)
Appends a string representation of this control to the provided
buffer.
|
boolean |
valueMatches(org.forgerock.opendj.ldap.schema.AttributeType type,
org.forgerock.opendj.ldap.ByteString value)
Indicates whether any of the filters associated with this matched values
control matches the provided attribute type/value.
|
void |
writeValue(org.forgerock.opendj.io.Asn1Writer writer)
Writes this control's value to an ASN.1 writer.
|
getOid, isCritical, toString, write
public static final ControlDecoder<MatchedValuesControl> DECODER
public MatchedValuesControl(boolean isCritical, List<MatchedValuesFilter> filters)
isCritical
- Indicates whether this control should be considered
critical to the operation processing.filters
- The set of filters to use to determine which values to
return.public void writeValue(org.forgerock.opendj.io.Asn1Writer writer) throws IOException
Control
writeValue
in class Control
writer
- The ASN.1 writer to use.IOException
- If a problem occurs while writing to the
stream.public List<MatchedValuesFilter> getFilters()
public boolean valueMatches(org.forgerock.opendj.ldap.schema.AttributeType type, org.forgerock.opendj.ldap.ByteString value)
type
- The attribute type with which the value is associated.value
- The attribute value for which to make the determination.true
if at least one of the filters associated with
this matched values control does match the provided attribute
value, or false
if none of the filters match.public void toString(StringBuilder buffer)
Control
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.