All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.novell.ldap.rfc2251.RfcDelRequest Maven / Gradle / Ivy

/* **************************************************************************
 * $OpenLDAP$
 *
 * Copyright (C) 1999 - 2002 Novell, Inc. All Rights Reserved.
 *
 * THIS WORK IS SUBJECT TO U.S. AND INTERNATIONAL COPYRIGHT LAWS AND
 * TREATIES. USE, MODIFICATION, AND REDISTRIBUTION OF THIS WORK IS SUBJECT
 * TO VERSION 2.0.1 OF THE OPENLDAP PUBLIC LICENSE, A COPY OF WHICH IS
 * AVAILABLE AT HTTP://WWW.OPENLDAP.ORG/LICENSE.HTML OR IN THE FILE "LICENSE"
 * IN THE TOP-LEVEL DIRECTORY OF THE DISTRIBUTION. ANY USE OR EXPLOITATION
 * OF THIS WORK OTHER THAN AS AUTHORIZED IN VERSION 2.0.1 OF THE OPENLDAP
 * PUBLIC LICENSE, OR OTHER PRIOR WRITTEN CONSENT FROM NOVELL, COULD SUBJECT
 * THE PERPETRATOR TO CRIMINAL AND CIVIL LIABILITY.
 ******************************************************************************/

package com.novell.ldap.rfc2251;

import com.novell.ldap.asn1.*;
import com.novell.ldap.*;

/**
 * Represents an LDAP Delete Request.
 *
 *
 *       DelRequest ::= [APPLICATION 10] LDAPDN
 *
*/ public class RfcDelRequest extends RfcLDAPDN implements RfcRequest { //************************************************************************* // Constructor for DelRequest //************************************************************************* /** * Constructs an LDAPv3 delete request protocol operation. * * @param dn The Distinguished Name of the entry to delete. */ public RfcDelRequest(String dn) { super(dn); } /** * Constructs an LDAPv3 delete request protocol operation. * * @param dn The Distinguished Name of the entry to delete. */ public RfcDelRequest(byte[] dn) { super(dn); } /** * Override getIdentifier() to return the appropriate application-wide id * representing this delete request. The getIdentifier() method is called * when this object is encoded. * * Identifier = CLASS: APPLICATION, FORM: CONSTRUCTED, TAG: 10 */ public final ASN1Identifier getIdentifier() { return new ASN1Identifier(ASN1Identifier.APPLICATION, false, LDAPMessage.DEL_REQUEST); } public final RfcRequest dupRequest(String base, String filter, boolean request) throws LDAPException { if( base == null) { return new RfcDelRequest( byteValue()); } else { return new RfcDelRequest( base); } } public final String getRequestDN() { return super.stringValue(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy