public abstract class ConnectorFilter extends Filter
| Modifier and Type | Field and Description |
|---|---|
protected List<Filter> |
filterSet
The set of filters used by And/Or filters
|
protected int |
filtersLength
The filters length
|
parent, parentTlvId| Constructor and Description |
|---|
ConnectorFilter()
The constructor.
|
ConnectorFilter(int tlvId)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFilter(Filter filter)
Add a new Filter to the list.
|
int |
computeLength()
Compute the ConnectorFilter length Length(ConnectorFilter) =
sum(filterSet.computeLength())
|
ByteBuffer |
encode(ByteBuffer buffer)
Encode the ConnectorFilter message to a PDU.
|
List<Filter> |
getFilterSet()
Get the list of filters stored in the composite filter
|
String |
toString()
Return a string compliant with RFC 2254 representing a composite filter,
one of AND, OR and NOT
|
getParent, getParentTlvId, getTlvId, setParentpublic ConnectorFilter(int tlvId)
public ConnectorFilter()
public void addFilter(Filter filter) throws DecoderException
filter - The filter to addDecoderExceptionpublic List<Filter> getFilterSet()
public int computeLength()
computeLength in class Filterpublic ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode in class Filterbuffer - The buffer where to put the PDUEncoderExceptionCopyright © 2021. All rights reserved.