public abstract class ConnectorFilter extends Filter
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, setParent
public ConnectorFilter(int tlvId)
tlvId
- The TLV identifierpublic ConnectorFilter()
public void addFilter(Filter filter) throws DecoderException
filter
- The filter to addDecoderException
- If the decoding failedpublic List<Filter> getFilterSet()
public int computeLength()
computeLength
in class Filter
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
ConnectorFilter : filter.encode() ... filter.encode()
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.