directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r1064280 - in /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators: CompareRequestDecorator.java CompareResponseDecorator.java DeleteResponseDecorator.java
Date Thu, 27 Jan 2011 19:47:23 GMT
Author: akarasulu
Date: Thu Jan 27 19:47:23 2011
New Revision: 1064280

URL: http://svn.apache.org/viewvc?rev=1064280&view=rev
Log:
Compare/Delete, Req/Resp. Decorator fixes removing unnecessary overloads.

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/CompareRequestDecorator.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/CompareResponseDecorator.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/DeleteResponseDecorator.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/CompareRequestDecorator.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/CompareRequestDecorator.java?rev=1064280&r1=1064279&r2=1064280&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/CompareRequestDecorator.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/CompareRequestDecorator.java
Thu Jan 27 19:47:23 2011
@@ -21,10 +21,7 @@ package org.apache.directory.shared.ldap
 
 
 import org.apache.directory.shared.ldap.model.entry.Value;
-import org.apache.directory.shared.ldap.model.message.AbandonListener;
 import org.apache.directory.shared.ldap.model.message.CompareRequest;
-import org.apache.directory.shared.ldap.model.message.MessageTypeEnum;
-import org.apache.directory.shared.ldap.model.message.ResultResponse;
 import org.apache.directory.shared.ldap.model.name.Dn;
 
 
@@ -33,7 +30,7 @@ import org.apache.directory.shared.ldap.
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class CompareRequestDecorator extends RequestDecorator implements CompareRequest
+public class CompareRequestDecorator extends SingleReplyRequestDecorator implements CompareRequest
 {
     /** The bytes of the attribute id used in the comparison */
     private byte[] attrIdBytes;
@@ -153,51 +150,8 @@ public class CompareRequestDecorator ext
     //-------------------------------------------------------------------------
     // The CompareRequest methods
     //-------------------------------------------------------------------------
-    /**
-     * {@inheritDoc}
-     */
-    public MessageTypeEnum getResponseType()
-    {
-        return getCompareRequest().getResponseType();
-    }
-
-
-    /**
-     * {@inheritDoc}
-     */
-    public ResultResponse getResultResponse()
-    {
-        return getCompareRequest().getResultResponse();
-    }
-
-
-    /**
-     * {@inheritDoc}
-     */
-    public void abandon()
-    {
-        getCompareRequest().abandon();
-    }
-
-
-    /**
-     * {@inheritDoc}
-     */
-    public boolean isAbandoned()
-    {
-        return getCompareRequest().isAbandoned();
-    }
-
-
-    /**
-     * {@inheritDoc}
-     */
-    public void addAbandonListener( AbandonListener listener )
-    {
-        getCompareRequest().addAbandonListener( listener );
-    }
-
 
+    
     /**
      * {@inheritDoc}
      */
@@ -259,13 +213,4 @@ public class CompareRequestDecorator ext
     {
         getCompareRequest().setAttributeId( attrId );
     }
-
-    
-    /**
-     * {@inheritDoc}
-     */
-    public String toString()
-    {
-        return getCompareRequest().toString();
-    }
 }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/CompareResponseDecorator.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/CompareResponseDecorator.java?rev=1064280&r1=1064279&r2=1064280&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/CompareResponseDecorator.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/CompareResponseDecorator.java
Thu Jan 27 19:47:23 2011
@@ -76,6 +76,8 @@ public class CompareResponseDecorator ex
     //-------------------------------------------------------------------------
     // The CompareResponse methods
     //-------------------------------------------------------------------------
+    
+    
     /**
      * {@inheritDoc}
      */
@@ -83,13 +85,4 @@ public class CompareResponseDecorator ex
     {
         return getCompareResponse().isTrue();
     }
-
-    
-    /**
-     * {@inheritDoc}
-     */
-    public String toString()
-    {
-        return getCompareResponse().toString();
-    }
 }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/DeleteResponseDecorator.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/DeleteResponseDecorator.java?rev=1064280&r1=1064279&r2=1064280&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/DeleteResponseDecorator.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/DeleteResponseDecorator.java
Thu Jan 27 19:47:23 2011
@@ -71,16 +71,4 @@ public class DeleteResponseDecorator ext
     {
         return deleteResponseLength;
     }
-
-
-    //-------------------------------------------------------------------------
-    // The DeleteResponse methods
-    //-------------------------------------------------------------------------
-    /**
-     * {@inheritDoc}
-     */
-    public String toString()
-    {
-        return getDeleteResponse().toString();
-    }
 }



Mime
View raw message