public class ExtensibleMatchFilter extends Filter
parent, parentTlvId
Constructor and Description |
---|
ExtensibleMatchFilter()
Creates a new ExtensibleMatchFilter object.
|
ExtensibleMatchFilter(int tlvId)
Creates a new ExtensibleMatchFilter object.
|
Modifier and Type | Method and Description |
---|---|
int |
computeLength()
Compute the ExtensibleMatchFilter length
ExtensibleMatchFilter :
0xA9 L1
|
[+--> 0x81 L3 matchingRule]
[+--> 0x82 L4 type]
[+--> 0x83 L5 matchValue]
[+--> 0x01 0x01 dnAttributes]
|
ByteBuffer |
encode(ByteBuffer buffer)
Encode the ExtensibleMatch Filters to a PDU.
|
int |
getExpectedMatchingRuleLength()
get the expectedMatchingRuleLength
|
String |
getMatchingRule()
Get the matchingRule
|
Value<?> |
getMatchValue()
Get the matchValue
|
String |
getType()
Get the type
|
boolean |
isDnAttributes()
Get the dnAttributes flag
|
void |
setDnAttributes(boolean dnAttributes)
Set the dnAttributes flag
|
void |
setExpectedMatchingRuleLength(int expectedMatchingRuleLength)
Set the expectedMatchingRuleLength
|
void |
setMatchingRule(String matchingRule)
Set the matchingRule
|
void |
setMatchValue(Value<?> matchValue)
Set the matchValue
|
void |
setType(String type)
Set the type
|
String |
toString()
Return a String representing an extended filter as of RFC 2254
|
getParent, getParentTlvId, getTlvId, setParent
public ExtensibleMatchFilter(int tlvId)
public ExtensibleMatchFilter()
public boolean isDnAttributes()
public void setDnAttributes(boolean dnAttributes)
dnAttributes
- The dnAttributes to set.public String getMatchingRule()
public void setMatchingRule(String matchingRule)
matchingRule
- The matchingRule to set.public Value<?> getMatchValue()
public void setMatchValue(Value<?> matchValue)
matchValue
- The matchValue to set.public int getExpectedMatchingRuleLength()
public void setExpectedMatchingRuleLength(int expectedMatchingRuleLength)
expectedMatchingRuleLength
- The expectedMatchingRuleLength to set.public int computeLength()
computeLength
in class Filter
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode
in class Filter
buffer
- The buffer where to put the PDUEncoderException
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.