Class AndFilter
- java.lang.Object
-
- org.apache.directory.api.ldap.codec.search.Filter
-
- org.apache.directory.api.ldap.codec.search.ConnectorFilter
-
- org.apache.directory.api.ldap.codec.search.AndFilter
-
public class AndFilter extends ConnectorFilter
And Filter Object to store the And filter.- Author:
- Apache Directory Project
-
-
Field Summary
-
Fields inherited from class org.apache.directory.api.ldap.codec.search.ConnectorFilter
filterSet, filtersLength
-
Fields inherited from class org.apache.directory.api.ldap.codec.search.Filter
parent, parentTlvId, tlvId
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcomputeLength()Compute the AndFilter length
AndFilter :ByteBufferencode(ByteBuffer buffer)Encode the AndFilter message to a PDU.List<Filter>getAndFilter()Get the AndFilter.StringtoString()Return a string compliant with RFC 2254 representing an AND filter-
Methods inherited from class org.apache.directory.api.ldap.codec.search.ConnectorFilter
addFilter, getFilterSet
-
Methods inherited from class org.apache.directory.api.ldap.codec.search.Filter
getParent, getParentTlvId, getTlvId, setParent
-
-
-
-
Method Detail
-
computeLength
public int computeLength()
Compute the AndFilter length
AndFilter :0xA0 L1 super.computeLength() Length(AndFilter) = Length(0xA0) + Length(super.computeLength()) + super.computeLength()- Overrides:
computeLengthin classConnectorFilter- Returns:
- The encoded length
-
encode
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
Encode the AndFilter message to a PDU.
AndFilter :0xA0 LL filter.encode() ... filter.encode()
- Overrides:
encodein classConnectorFilter- Parameters:
buffer- The buffer where to put the PDU- Returns:
- The PDU.
- Throws:
EncoderException- If the encoding failed
-
toString
public String toString()
Return a string compliant with RFC 2254 representing an AND filter- Overrides:
toStringin classConnectorFilter- Returns:
- The AND filter string
-
-