public class ExtensibleMatchFilter extends Filter
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 : |
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)
tlvId
- The TLV identifierpublic 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()
0xA9 L1 | [+--> 0x81 L3 matchingRule] [+--> 0x82 L4 type] [+--> 0x83 L5 matchValue] [+--> 0x01 0x01 dnAttributes]
computeLength
in class Filter
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
0xA9 LL | 0x81 LL matchingRule | / | 0x82 LL Type | / | /0x83 LL matchValue +--+ +-+ | \ \ | \ 0x83 LL MatchValue | 0x82 LL type | 0x83 LL matchValue +--[0x84 0x01 dnAttributes]
encode
in class Filter
buffer
- The buffer where to put the PDUEncoderException
- If the encoding failedCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.