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
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
|
addLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent
public ConnectorFilter(int tlvId)
public ConnectorFilter()
public void addFilter(Filter filter) throws DecoderException
filter
- The filter to addDecoderException
public List<Filter> getFilterSet()
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-2012 Apache Software Foundation. All Rights Reserved.