org.apache.directory.shared.ldap.codec.search
Class AndFilter
java.lang.Object
org.apache.directory.shared.asn1.Asn1Object
org.apache.directory.shared.ldap.codec.search.Filter
org.apache.directory.shared.ldap.codec.search.ConnectorFilter
org.apache.directory.shared.ldap.codec.search.AndFilter
public class AndFilter
- extends ConnectorFilter
And Filter Object to store the And filter.
- Author:
- Apache Directory Project
Constructor Summary |
AndFilter(int tlvId)
The constructor. |
Method Summary |
int |
computeLength()
Compute the AndFilter length
AndFilter :
0xA0 L1 super.computeLength()
Length(AndFilter) = Length(0xA0) + Length(super.computeLength()) +
super.computeLength() |
ByteBuffer |
encode(ByteBuffer buffer)
Encode the AndFilter message to a PDU. |
ArrayList |
getAndFilter()
Get the AndFilter. |
String |
toString()
Return a string compliant with RFC 2254 representing an AND filter |
AndFilter
public AndFilter(int tlvId)
- The constructor. We wont initialize the ArrayList as they may not be
used.
getAndFilter
public ArrayList 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 class ConnectorFilter
- Returns:
- The object's computed 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 class ConnectorFilter
- Parameters:
buffer
- The buffer where to put the PDU
- Returns:
- The PDU.
- Throws:
EncoderException
toString
public String toString()
- Return a string compliant with RFC 2254 representing an AND filter
- Overrides:
toString
in class ConnectorFilter
- Returns:
- The AND filter string
Copyright © 2004-2012. All Rights Reserved.