public class AndFilter extends ConnectorFilter
Constructor and Description |
---|
AndFilter()
The constructor.
|
AndFilter(int tlvId)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
computeLength()
Compute the AndFilter length
AndFilter : |
ByteBuffer |
encode(ByteBuffer buffer)
Encode the AndFilter message to a PDU.
|
List<Filter> |
getAndFilter()
Get the AndFilter.
|
String |
toString()
Return a string compliant with RFC 2254 representing an AND filter
|
addFilter, getFilterSet
getParent, getParentTlvId, getTlvId, setParent
public AndFilter(int tlvId)
tlvId
- The TLV identifierpublic AndFilter()
public List<Filter> getAndFilter()
public int computeLength()
0xA0 L1 super.computeLength() Length(AndFilter) = Length(0xA0) + Length(super.computeLength()) + super.computeLength()
computeLength
in class ConnectorFilter
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
0xA0 LL filter.encode() ... filter.encode()
encode
in class ConnectorFilter
buffer
- The buffer where to put the PDUEncoderException
- If the encoding failedpublic String toString()
toString
in class ConnectorFilter
Copyright © 2003–2018 The Apache Software Foundation. All rights reserved.