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