Class OrFilter
- 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.OrFilter
-
public class OrFilter extends ConnectorFilter
Or Filter Object to store the Or 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 OrFilter length
OrFilter :ByteBufferencode(ByteBuffer buffer)Encode the OrFilter message to a PDU.List<Filter>getOrFilter()Get the OrFilterStringtoString()Return a string compliant with RFC 2254 representing an OR 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 OrFilter length
OrFilter :0xA1 L1 super.computeLength() Length(OrFilter) = Length(0xA1) + Length(super.computeLength()) + super.computeLength()- Overrides:
computeLengthin classConnectorFilter- Returns:
- The encoded length
-
encode
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
Encode the OrFilter message to a PDU.
OrFilter :0xA1 LL 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 OR filter- Overrides:
toStringin classConnectorFilter- Returns:
- The OR filter string
-
-