Class JDAPModifyRequest

  • All Implemented Interfaces:
    JDAPProtocolOp

    public class JDAPModifyRequest
    extends JDAPBaseDNRequest
    implements JDAPProtocolOp
    This class implements the modify request.
       ModifyRequest ::= [APPLICATION 6] SEQUENCE {
         object LDAPDN,
         modification SEQUENCE OF SEQUENCE {
           operation ENUMERATED {
             add (0),
             delete (1),
             replace (2)
           },
           modification SEQUENCE {
             type AttributeType,
             values SET OF AttributeValue
           }
         }
       }
     
    Version:
    1.0
    • Field Detail

      • m_dn

        protected java.lang.String m_dn
        Internal variables
    • Constructor Detail

      • JDAPModifyRequest

        public JDAPModifyRequest​(java.lang.String dn,
                                 LDAPModification[] mod)
        Constructs the modify request
        Parameters:
        dn - distinguished name of modifying
        mod - list of modifications
    • Method Detail

      • getType

        public int getType()
        Retrieves protocol operation type.
        Specified by:
        getType in interface JDAPProtocolOp
        Returns:
        protocol type
      • setBaseDN

        public void setBaseDN​(java.lang.String basedn)
        Sets the base dn component.
        Specified by:
        setBaseDN in class JDAPBaseDNRequest
        Parameters:
        basedn - base dn
      • getBaseDN

        public java.lang.String getBaseDN()
        Gets the base dn component.
        Specified by:
        getBaseDN in class JDAPBaseDNRequest
        Returns:
        base dn
      • getBERElement

        public BERElement getBERElement()
        Gets the ber representation of modify request.
        Specified by:
        getBERElement in interface JDAPProtocolOp
        Returns:
        ber representation of modify request
      • toString

        public java.lang.String toString()
        Retrieves string representation of modify request.
        Specified by:
        toString in interface JDAPProtocolOp
        Overrides:
        toString in class java.lang.Object
        Returns:
        string representation of request