public class AttributeValueAssertionFilter extends Filter
Constructor and Description |
---|
AttributeValueAssertionFilter(int filterType)
The constructor.
|
AttributeValueAssertionFilter(int tlvId,
int filterType)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
computeLength()
Compute the AttributeValueFilter length
AttributeValueFilter : |
ByteBuffer |
encode(ByteBuffer buffer)
Encode the AttributeValueAssertion Filters to a PDU.
|
AttributeValueAssertion |
getAssertion()
Get the assertion
|
int |
getFilterType()
Get the filter type
|
void |
setAssertion(AttributeValueAssertion assertion)
Set the assertion
|
void |
setFilterType(int filterType)
Set the filter type
|
String |
toString()
Return a string compliant with RFC 2254 representing an item filter
|
getParent, getParentTlvId, getTlvId, setParent
public AttributeValueAssertionFilter(int tlvId, int filterType)
tlvId
- The TLV identifierfilterType
- The filter typepublic AttributeValueAssertionFilter(int filterType)
filterType
- The filter typepublic AttributeValueAssertion getAssertion()
public void setAssertion(AttributeValueAssertion assertion)
assertion
- The assertion to set.public int getFilterType()
public void setFilterType(int filterType)
filterType
- The filterType to set.public int computeLength()
0xA(3, 5, 6, 8) L1 | +--> 0x04 L2 attributeDesc +--> 0x04 L3 assertionValue L2 = Length(attributeDesc) L3 = Length(assertionValue) L1 = 1 + Length(L2) + L2 + 1 + Length(L3) + L3 Length(AttributeValueFilter) = Length(0xA?) + Length(L1) + 1 + Length(L2) + L2 + 1 + Length(L3) + L3
computeLength
in class Filter
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
0xA[3, 5, 6, 8] LL 0x04 LL attributeDesc 0x04 LL assertionValue
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.