Author: elecharny
Date: Sun Jul 3 09:06:38 2005
New Revision: 208937
URL: http://svn.apache.org/viewcvs?rev=208937&view=rev
Log:
Added the DelRequest pojo
Added:
directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/DelRequest.java
Added: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/DelRequest.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/DelRequest.java?rev=208937&view=auto
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/DelRequest.java
(added)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/DelRequest.java
Sun Jul 3 09:06:38 2005
@@ -0,0 +1,66 @@
+/*
+ * Copyright 2005 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package org.apache.asn1.ldap.pojo;
+
+import org.apache.asn1.ldap.codec.primitives.LdapDN;
+
+
+/**
+ * A DelRequest Message. Its syntax is :
+ * AbandonRequest ::= [APPLICATION 10] LDAPDN
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class DelRequest extends LdapMessage
+{
+ //~ Instance fields ----------------------------------------------------------------------------
+
+ /** DOCUMENT ME! */
+ private LdapDN entry;
+
+ //~ Constructors -------------------------------------------------------------------------------
+
+ /**
+ * Creates a new DelRequest object.
+ */
+ public DelRequest()
+ {
+ super( );
+ }
+
+ //~ Methods ------------------------------------------------------------------------------------
+
+ /**
+ * Get the entry to be deleted
+ *
+ * @return Returns the entry.
+ */
+ public String getEntry()
+ {
+ return ( ( entry == null ) ? "" : entry.toString() );
+ }
+
+ /**
+ * Set the entry to be deleted
+ *
+ * @param entry The entry to set.
+ */
+ public void setEntry( LdapDN entry )
+ {
+ this.entry = entry;
+ }
+}
|