public class ExtensibleMatchFilter extends Filter
parent
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
|
addLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, 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 String getType()
public void setType(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 interface Asn1Object
computeLength
in class AbstractAsn1Object
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode
in interface Asn1Object
encode
in class AbstractAsn1Object
buffer
- The buffer where to put the PDUEncoderException
- if the buffer can't be encodedCopyright © 2003–2013 The Apache Software Foundation. All rights reserved.