Class ControlsContainer
java.lang.Object
org.apache.directory.api.asn1.ber.AbstractContainer
org.apache.directory.api.ldap.extras.extended.ads_impl.endTransaction.controls.ControlsContainer
- All Implemented Interfaces:
org.apache.directory.api.asn1.ber.Asn1Container
public class ControlsContainer
extends org.apache.directory.api.asn1.ber.AbstractContainer
A container storing decoded controls for a EndTransactionResponse extended operation
- Author:
- Apache Directory Project
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddControl(org.apache.directory.api.ldap.model.message.Control control) Add a controlList<org.apache.directory.api.ldap.model.message.Control> Get the controls listorg.apache.directory.api.ldap.model.message.ControlGet the current controlorg.apache.directory.api.ldap.codec.api.ControlFactory<?> Get the control factoryorg.apache.directory.api.ldap.codec.api.LdapApiServiceGets theLdapApiServiceassociated with this Container.voidsetCurrentControl(org.apache.directory.api.ldap.model.message.Control currentControl) Set the current controlvoidsetFactory(org.apache.directory.api.ldap.codec.api.ControlFactory<?> factory) Set the control factoryMethods inherited from class org.apache.directory.api.asn1.ber.AbstractContainer
clean, getCurrentTLV, getDecodedBytes, getGrammar, getMaxPDUSize, getNewTlvId, getParentTLV, getState, getStream, getTlvId, getTransition, incrementDecodedBytes, isGathering, isGrammarEndAllowed, rewind, setCurrentTLV, setDecodedBytes, setGathering, setGrammar, setGrammarEndAllowed, setMaxPDUSize, setParentTLV, setState, setStream, setTransition, updateParent
-
Constructor Details
-
ControlsContainer
public ControlsContainer()A constructor for this container
-
-
Method Details
-
getLdapCodecService
public org.apache.directory.api.ldap.codec.api.LdapApiService getLdapCodecService()Gets theLdapApiServiceassociated with this Container.- Returns:
- The LDAP service instance
-
getCurrentControl
public org.apache.directory.api.ldap.model.message.Control getCurrentControl()Get the current control- Returns:
- the currentControl
-
setCurrentControl
public void setCurrentControl(org.apache.directory.api.ldap.model.message.Control currentControl) Set the current control- Parameters:
currentControl- the currentControl to set
-
getControls
Get the controls list- Returns:
- the controls
-
addControl
public void addControl(org.apache.directory.api.ldap.model.message.Control control) Add a control- Parameters:
control- the controls to add to the list of controls
-
getFactory
public org.apache.directory.api.ldap.codec.api.ControlFactory<?> getFactory()Get the control factory- Returns:
- the factory
-
setFactory
public void setFactory(org.apache.directory.api.ldap.codec.api.ControlFactory<?> factory) Set the control factory- Parameters:
factory- the factory to set
-