org.apache.directory.shared.ldap.codec.search
Class AndFilter

java.lang.Object
  extended byorg.apache.directory.shared.asn1.Asn1Object
      extended byorg.apache.directory.shared.ldap.codec.search.Filter
          extended byorg.apache.directory.shared.ldap.codec.search.ConnectorFilter
              extended byorg.apache.directory.shared.ldap.codec.search.AndFilter

public class AndFilter
extends ConnectorFilter

And Filter Object to store the And filter.

Author:
Apache Directory Project

Field Summary
 
Fields inherited from class org.apache.directory.shared.ldap.codec.search.ConnectorFilter
filterSet, filtersLength
 
Fields inherited from class org.apache.directory.shared.asn1.Asn1Object
parent
 
Constructor Summary
AndFilter()
          The constructor.
 
Method Summary
 int computeLength()
          Compute the AndFilter length AndFilter : 0xA0 L1 super.computeLength() Length(AndFilter) = Length(0xA0) + Length(super.computeLength()) + super.computeLength()
 java.nio.ByteBuffer encode(java.nio.ByteBuffer buffer)
          Encode the AndFilter message to a PDU.
 java.util.ArrayList getAndFilter()
          Get the AndFilter.
 java.lang.String toString()
          Return a string compliant with RFC 2254 representing an AND filter
 
Methods inherited from class org.apache.directory.shared.ldap.codec.search.ConnectorFilter
addFilter, getFilterSet
 
Methods inherited from class org.apache.directory.shared.asn1.Asn1Object
addLength, getCurrentLength, getExpectedLength, getParent, setCurrentLength, setExpectedLength, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AndFilter

public AndFilter()
The constructor. We wont initialize the ArrayList as they may not be used.

Method Detail

getAndFilter

public java.util.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

encode

public java.nio.ByteBuffer encode(java.nio.ByteBuffer buffer)
                           throws org.apache.directory.shared.asn1.codec.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:
org.apache.directory.shared.asn1.codec.EncoderException

toString

public java.lang.String toString()
Return a string compliant with RFC 2254 representing an AND filter

Overrides:
toString in class ConnectorFilter
Returns:
The AND filter string


Copyright © 2003-2006 . All Rights Reserved.