Class LdifControl

    • Field Detail

      • value

        protected byte[] value
        Optional control value
    • Constructor Detail

      • LdifControl

        public LdifControl()
        Create a new Control
      • LdifControl

        public LdifControl​(String oid)
        Create a new Control
        Parameters:
        oid - OID of the created control
    • Method Detail

      • getOid

        public String getOid()
        Specified by:
        getOid in interface Control
        Returns:
        The Control's OID
      • isCritical

        public boolean isCritical()
        Tells if the control is critical or not.
        Specified by:
        isCritical in interface Control
        Returns:
        true if the control is critical, false otherwise
      • setCritical

        public void setCritical​(boolean criticality)
        Sets the critical flag which determines whether or not this control is critical for the correct operation of a request or response message. The default for this value should be false.
        Specified by:
        setCritical in interface Control
        Parameters:
        criticality - true if the control is critical false otherwise.
      • getValue

        public byte[] getValue()
        Get back the control value
        Returns:
        The control's value
      • setValue

        public void setValue​(byte[] value)
        Store the control value
        Parameters:
        value - The value to store
      • hasValue

        public boolean hasValue()
        Returns:
        TRUE if the control has a value