org.apache.directory.shared.ldap.codec.controls.search.persistentSearch
Class PersistentSearchContainer
java.lang.Object
org.apache.directory.shared.asn1.ber.AbstractContainer
org.apache.directory.shared.ldap.codec.controls.search.persistentSearch.PersistentSearchContainer
- All Implemented Interfaces:
- Asn1Container
public class PersistentSearchContainer
- extends AbstractContainer
- Author:
- Apache Directory Project
| Methods inherited from class org.apache.directory.shared.asn1.ber.AbstractContainer |
getCurrentTLV, getDecodeBytes, getGrammar, getMaxPDUSize, getNewTlvId, getParentTLV, getState, getStream, getTlvId, getTransition, incrementDecodeBytes, isGathering, isGrammarEndAllowed, rewind, setCurrentTLV, setGathering, setGrammarEndAllowed, setMaxPDUSize, setParentTLV, setState, setStream, setTransition, updateParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PersistentSearchContainer
public PersistentSearchContainer(LdapCodecService codec)
- Creates a new PSearchControlContainer object. We will store one grammar,
it's enough ...
PersistentSearchContainer
public PersistentSearchContainer(LdapCodecService codec,
PersistentSearch control)
- Creates a new PSearchControlContainer object pre-populated with a
decorator wrapping the supplied control, or using the supplied control if
it already is a decorator.
- Parameters:
control - The PersistentSearch Control or a decorating wrapper.
decorate
public void decorate(PersistentSearch control)
- Conditionally decorates a control if is not a decorator already.
- Parameters:
control - The PersistentSearch Control to decorate if it already is not
a decorator, if it is then the object is set as this container's decorator.
getPersistentSearchDecorator
public PersistentSearchDecorator getPersistentSearchDecorator()
- Returns:
- Returns the persistent search decorator.
setPersistentSearchDecorator
public void setPersistentSearchDecorator(PersistentSearchDecorator decorator)
- Set a PSearchControl Object into the container. It will be completed by
the ldapDecoder.
- Parameters:
decorator - the PSearchControl to set.
clean
public void clean()
- Clean the container
- Overrides:
clean in class AbstractContainer
Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.