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
    Constructor
    Description
    A constructor for this container
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addControl(org.apache.directory.api.ldap.model.message.Control control)
    Add a control
    List<org.apache.directory.api.ldap.model.message.Control>
    Get the controls list
    org.apache.directory.api.ldap.model.message.Control
    Get the current control
    org.apache.directory.api.ldap.codec.api.ControlFactory<?>
    Get the control factory
    org.apache.directory.api.ldap.codec.api.LdapApiService
    Gets the LdapApiService associated with this Container.
    void
    setCurrentControl(org.apache.directory.api.ldap.model.message.Control currentControl)
    Set the current control
    void
    setFactory(org.apache.directory.api.ldap.codec.api.ControlFactory<?> factory)
    Set the control factory

    Methods 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

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ControlsContainer

      public ControlsContainer()
      A constructor for this container
  • Method Details

    • getLdapCodecService

      public org.apache.directory.api.ldap.codec.api.LdapApiService getLdapCodecService()
      Gets the LdapApiService associated 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

      public List<org.apache.directory.api.ldap.model.message.Control> 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