Search in sources :

Example 11 with ModifyRequestImpl

use of org.apache.directory.api.ldap.model.message.ModifyRequestImpl in project directory-ldap-api by apache.

the class InitModifyRequest method action.

/**
 * {@inheritDoc}
 */
public void action(LdapMessageContainer<ModifyRequestDecorator> container) {
    // Now, we can allocate the ModifyRequest Object
    ModifyRequest internalModifyRequest = new ModifyRequestImpl();
    internalModifyRequest.setMessageId(container.getMessageId());
    ModifyRequestDecorator modifyRequestDecorator = new ModifyRequestDecorator(container.getLdapCodecService(), internalModifyRequest);
    container.setMessage(modifyRequestDecorator);
}
Also used : ModifyRequestDecorator(org.apache.directory.api.ldap.codec.decorators.ModifyRequestDecorator) ModifyRequestImpl(org.apache.directory.api.ldap.model.message.ModifyRequestImpl) ModifyRequest(org.apache.directory.api.ldap.model.message.ModifyRequest)

Aggregations

ModifyRequest (org.apache.directory.api.ldap.model.message.ModifyRequest)11 ModifyRequestImpl (org.apache.directory.api.ldap.model.message.ModifyRequestImpl)11 ModifyResponse (org.apache.directory.api.ldap.model.message.ModifyResponse)9 Dn (org.apache.directory.api.ldap.model.name.Dn)8 DefaultAttribute (org.apache.directory.api.ldap.model.entry.DefaultAttribute)7 Modification (org.apache.directory.api.ldap.model.entry.Modification)7 LdapException (org.apache.directory.api.ldap.model.exception.LdapException)7 DefaultModification (org.apache.directory.api.ldap.model.entry.DefaultModification)6 HashMap (java.util.HashMap)1 LinkedHashMap (java.util.LinkedHashMap)1 Map (java.util.Map)1 ModifyRequestDecorator (org.apache.directory.api.ldap.codec.decorators.ModifyRequestDecorator)1 Attribute (org.apache.directory.api.ldap.model.entry.Attribute)1 Entry (org.apache.directory.api.ldap.model.entry.Entry)1 LdapConnection (org.apache.directory.ldap.client.api.LdapConnection)1 LdapNetworkConnection (org.apache.directory.ldap.client.api.LdapNetworkConnection)1 Before (org.junit.Before)1