directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r1064274 - in /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators: AddRequestDecorator.java BindRequestDecorator.java BindResponseDecorator.java
Date Thu, 27 Jan 2011 19:42:44 GMT
Author: akarasulu
Date: Thu Jan 27 19:42:44 2011
New Revision: 1064274

URL: http://svn.apache.org/viewvc?rev=1064274&view=rev
Log:
Fixing up, removing unneeded overrides from Add/Bind Req/Resp Decorators.

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/AddRequestDecorator.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/BindRequestDecorator.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/BindResponseDecorator.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/AddRequestDecorator.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/AddRequestDecorator.java?rev=1064274&r1=1064273&r2=1064274&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/AddRequestDecorator.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/AddRequestDecorator.java
Thu Jan 27 19:42:44 2011
@@ -144,6 +144,11 @@ public class AddRequestDecorator extends
         return valuesLength;
     }
 
+
+    //-------------------------------------------------------------------------
+    // The AddRequest methods
+    //-------------------------------------------------------------------------
+
     
     /**
      * {@inheritDoc}
@@ -181,7 +186,10 @@ public class AddRequestDecorator extends
     }
 
     
-    // TODO all these must go
+    //-------------------------------------------------------------------------
+    // @TODO ALL THESE MUST BE REMOVED
+    //-------------------------------------------------------------------------
+
 
     public void addAttributeType( String type ) throws LdapException
     {

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/BindRequestDecorator.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/BindRequestDecorator.java?rev=1064274&r1=1064273&r2=1064274&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/BindRequestDecorator.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/BindRequestDecorator.java
Thu Jan 27 19:42:44 2011
@@ -20,10 +20,7 @@
 package org.apache.directory.shared.ldap.codec.decorators;
 
 
-import org.apache.directory.shared.ldap.model.message.AbandonListener;
 import org.apache.directory.shared.ldap.model.message.BindRequest;
-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;
 
 
@@ -32,7 +29,7 @@ import org.apache.directory.shared.ldap.
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class BindRequestDecorator extends RequestDecorator implements BindRequest
+public class BindRequestDecorator extends SingleReplyRequestDecorator implements BindRequest
 {
     /** The bind request length */
     private int bindRequestLength;
@@ -124,49 +121,6 @@ public class BindRequestDecorator extend
     //-------------------------------------------------------------------------
     // The BindRequest methods
     //-------------------------------------------------------------------------
-    /**
-     * {@inheritDoc}
-     */
-    public MessageTypeEnum getResponseType()
-    {
-        return getBindRequest().getResponseType();
-    }
-
-
-    /**
-     * {@inheritDoc}
-     */
-    public ResultResponse getResultResponse()
-    {
-        return getBindRequest().getResultResponse();
-    }
-
-
-    /**
-     * {@inheritDoc}
-     */
-    public void abandon()
-    {
-        getBindRequest().abandon();
-    }
-
-
-    /**
-     * {@inheritDoc}
-     */
-    public boolean isAbandoned()
-    {
-        return getBindRequest().isAbandoned();
-    }
-
-
-    /**
-     * {@inheritDoc}
-     */
-    public void addAbandonListener( AbandonListener listener )
-    {
-        getBindRequest().addAbandonListener( listener );
-    }
 
 
     /**
@@ -284,13 +238,4 @@ public class BindRequestDecorator extend
     {
         getBindRequest().setSaslMechanism( saslMechanism );
     }
-
-    
-    /**
-     * {@inheritDoc}
-     */
-    public String toString()
-    {
-        return getBindRequest().toString();
-    }
 }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/BindResponseDecorator.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/BindResponseDecorator.java?rev=1064274&r1=1064273&r2=1064274&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/BindResponseDecorator.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/BindResponseDecorator.java
Thu Jan 27 19:42:44 2011
@@ -76,6 +76,8 @@ public class BindResponseDecorator exten
     //-------------------------------------------------------------------------
     // The BindResponse methods
     //-------------------------------------------------------------------------
+    
+    
     /**
      * {@inheritDoc}
      */
@@ -92,13 +94,4 @@ public class BindResponseDecorator exten
     {
         getBindResponse().setServerSaslCreds( serverSaslCreds );
     }
-
-    
-    /**
-     * {@inheritDoc}
-     */
-    public String toString()
-    {
-        return getBindResponse().toString();
-    }
 }



Mime
View raw message