public class ExtensibleMatchFilter extends Filter
| Modifier and Type | Field and Description |
|---|---|
private boolean |
dnAttributes
The dnAttributes flag
|
private int |
expectedMatchingRuleLength
The expected lenth of the Matching Rule Assertion
|
private int |
extensibleMatchLength
The extensible match length
|
private java.lang.String |
matchingRule
Matching rule
|
private byte[] |
matchingRuleBytes
Matching rule bytes
|
private Value<?> |
matchValue
Matching rule value
|
private java.lang.String |
type
Matching rule type
|
private byte[] |
typeBytes |
parent, parentTlvId, tlvId| 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]
|
java.nio.ByteBuffer |
encode(java.nio.ByteBuffer buffer)
Encode the ExtensibleMatch Filters to a PDU.
|
int |
getExpectedMatchingRuleLength()
get the expectedMatchingRuleLength
|
java.lang.String |
getMatchingRule()
Get the matchingRule
|
Value<?> |
getMatchValue()
Get the matchValue
|
java.lang.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(java.lang.String matchingRule)
Set the matchingRule
|
void |
setMatchValue(Value<?> matchValue)
Set the matchValue
|
void |
setType(java.lang.String type)
Set the type
|
java.lang.String |
toString()
Return a String representing an extended filter as of RFC 2254
|
getParent, getParentTlvId, getTlvId, setParentprivate int expectedMatchingRuleLength
private java.lang.String matchingRule
private byte[] matchingRuleBytes
private java.lang.String type
private byte[] typeBytes
private Value<?> matchValue
private boolean dnAttributes
private int extensibleMatchLength
public ExtensibleMatchFilter(int tlvId)
public ExtensibleMatchFilter()
public boolean isDnAttributes()
public void setDnAttributes(boolean dnAttributes)
dnAttributes - The dnAttributes to set.public java.lang.String getMatchingRule()
public void setMatchingRule(java.lang.String matchingRule)
matchingRule - The matchingRule to set.public Value<?> getMatchValue()
public void setMatchValue(Value<?> matchValue)
matchValue - The matchValue to set.public java.lang.String getType()
public void setType(java.lang.String type)
type - The type to set.public int getExpectedMatchingRuleLength()
public void setExpectedMatchingRuleLength(int expectedMatchingRuleLength)
expectedMatchingRuleLength - The expectedMatchingRuleLength to set.public int computeLength()
computeLength in class Filterpublic java.nio.ByteBuffer encode(java.nio.ByteBuffer buffer)
throws EncoderException
encode in class Filterbuffer - The buffer where to put the PDUEncoderExceptionpublic java.lang.String toString()
toString in class java.lang.Object