|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.asn1.AbstractAsn1Object
org.apache.directory.shared.ldap.codec.search.Filter
org.apache.directory.shared.ldap.codec.search.ConnectorFilter
public abstract class ConnectorFilter
This Filter abstract class is used to store a set of filters used by OR/AND/NOT filters.
| Field Summary | |
|---|---|
protected java.util.List<Filter> |
filterSet
The set of filters used by And/Or filters |
protected int |
filtersLength
The filters length |
| Fields inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object |
|---|
parent |
| Constructor Summary | |
|---|---|
ConnectorFilter()
The constructor. |
|
ConnectorFilter(int tlvId)
The constructor. |
|
| Method Summary | |
|---|---|
void |
addFilter(Filter filter)
Add a new Filter to the list. |
int |
computeLength()
Compute the ConnectorFilter length Length(ConnectorFilter) = sum(filterSet.computeLength()) |
java.nio.ByteBuffer |
encode(java.nio.ByteBuffer buffer)
Encode the ConnectorFilter message to a PDU. |
java.util.List<Filter> |
getFilterSet()
Get the list of filters stored in the composite filter |
java.lang.String |
toString()
Return a string compliant with RFC 2254 representing a composite filter, one of AND, OR and NOT |
| Methods inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object |
|---|
addLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List<Filter> filterSet
protected int filtersLength
| Constructor Detail |
|---|
public ConnectorFilter(int tlvId)
public ConnectorFilter()
| Method Detail |
|---|
public void addFilter(Filter filter)
throws DecoderException
filter - The filter to add
DecoderExceptionpublic java.util.List<Filter> getFilterSet()
public int computeLength()
computeLength in interface Asn1ObjectcomputeLength in class AbstractAsn1Object
public java.nio.ByteBuffer encode(java.nio.ByteBuffer buffer)
throws EncoderException
encode in interface Asn1Objectencode in class AbstractAsn1Objectbuffer - The buffer where to put the PDU
EncoderExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||