Class PresentFilter
- java.lang.Object
-
- org.apache.directory.api.ldap.codec.search.Filter
-
- org.apache.directory.api.ldap.codec.search.PresentFilter
-
public class PresentFilter extends Filter
Object to store the filter. A filter is seen as a tree with a root.- Author:
- Apache Directory Project
-
-
Field Summary
-
Fields inherited from class org.apache.directory.api.ldap.codec.search.Filter
parent, parentTlvId, tlvId
-
-
Constructor Summary
Constructors Constructor Description PresentFilter()The constructor.PresentFilter(int tlvId)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcomputeLength()Compute the PresentFilter length
PresentFilter :ByteBufferencode(ByteBuffer buffer)Encode the PresentFilter message to a PDU.StringgetAttributeDescription()Get the attributevoidsetAttributeDescription(String attributeDescription)Set the attributeDescriptionStringtoString()Return a string compliant with RFC 2254 representing a Present filter-
Methods inherited from class org.apache.directory.api.ldap.codec.search.Filter
getParent, getParentTlvId, getTlvId, setParent
-
-
-
-
Method Detail
-
getAttributeDescription
public String getAttributeDescription()
Get the attribute- Returns:
- Returns the attributeDescription.
-
setAttributeDescription
public void setAttributeDescription(String attributeDescription)
Set the attributeDescription- Parameters:
attributeDescription- The attributeDescription to set.
-
computeLength
public int computeLength()
Compute the PresentFilter length
PresentFilter :0x87 L1 present Length(PresentFilter) = Length(0x87) + Length(super.computeLength()) + super.computeLength()- Specified by:
computeLengthin classFilter- Returns:
- The encoded length
-
encode
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
Encode the PresentFilter message to a PDU. PresentFilter : 0x87 LL attributeDescription- Specified by:
encodein classFilter- Parameters:
buffer- The buffer where to put the PDU- Returns:
- The PDU.
- Throws:
EncoderException- If the encoding failed
-
-