public class NotFilter extends ConnectorFilter
filterSet, filtersLength
parent, parentTlvId
Constructor and Description |
---|
NotFilter()
The constructor.
|
NotFilter(int tlvId)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addFilter(Filter filter)
Subclass the addFilterMethod, as this is specific for a NotFilter (we
cannot have more than one elements).
|
int |
computeLength()
Compute the NotFilter length
NotFilter :
0xA2 L1 super.computeLength()
Length(NotFilter) = Length(0xA2) + Length(super.computeLength()) +
super.computeLength()
|
ByteBuffer |
encode(ByteBuffer buffer)
Encode the NotFilter message to a PDU.
|
Filter |
getNotFilter()
Get the NotFilter
|
void |
setNotFilter(Filter notFilter)
Set the NotFilter
|
String |
toString()
Return a string compliant with RFC 2254 representing a NOT filter
|
getFilterSet
getParent, getParentTlvId, getTlvId, setParent
public NotFilter(int tlvId)
public NotFilter()
public void addFilter(Filter filter) throws DecoderException
addFilter
in class ConnectorFilter
filter
- The Filter to addDecoderException
public Filter getNotFilter()
public void setNotFilter(Filter notFilter) throws DecoderException
notFilter
- The notFilter to set.DecoderException
public int computeLength()
computeLength
in class ConnectorFilter
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode
in class ConnectorFilter
buffer
- The buffer where to put the PDUEncoderException
public String toString()
toString
in class ConnectorFilter
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.