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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
computeLength()
Compute the AndFilter length
AndFilter :ByteBuffer
encode(ByteBuffer buffer)
Encode the AndFilter message to a PDU.List<Filter>
getAndFilter()
Get the AndFilter.String
toString()
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
-
getAndFilter
public List<Filter> getAndFilter()
Get the AndFilter.- Returns:
- Returns the andFilter.
-
computeLength
public int computeLength()
Compute the AndFilter length
AndFilter :0xA0 L1 super.computeLength() Length(AndFilter) = Length(0xA0) + Length(super.computeLength()) + super.computeLength()
- Overrides:
computeLength
in 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:
encode
in 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:
toString
in classConnectorFilter
- Returns:
- The AND filter string
-
-