directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r1064283 - in /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators: ExtendedRequestDecorator.java ExtendedResponseDecorator.java
Date Thu, 27 Jan 2011 20:02:16 GMT
Author: akarasulu
Date: Thu Jan 27 20:02:16 2011
New Revision: 1064283

URL: http://svn.apache.org/viewvc?rev=1064283&view=rev
Log:
Took care of Extended Rq/Rs pair's unnecesary overloads.

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/ExtendedRequestDecorator.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/ExtendedResponseDecorator.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/ExtendedRequestDecorator.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/ExtendedRequestDecorator.java?rev=1064283&r1=1064282&r2=1064283&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/ExtendedRequestDecorator.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/ExtendedRequestDecorator.java
Thu Jan 27 20:02:16 2011
@@ -21,8 +21,6 @@ package org.apache.directory.shared.ldap
 
 
 import org.apache.directory.shared.ldap.model.message.ExtendedRequest;
-import org.apache.directory.shared.ldap.model.message.MessageTypeEnum;
-import org.apache.directory.shared.ldap.model.message.ResultResponse;
 
 
 /**
@@ -30,7 +28,7 @@ import org.apache.directory.shared.ldap.
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class ExtendedRequestDecorator extends RequestDecorator implements ExtendedRequest
+public class ExtendedRequestDecorator extends SingleReplyRequestDecorator implements ExtendedRequest
 {
     /** The extended request length */
     private int extendedRequestLength;
@@ -104,24 +102,8 @@ public class ExtendedRequestDecorator ex
     //-------------------------------------------------------------------------
     // The ExtendedRequest methods
     //-------------------------------------------------------------------------
-    /**
-     * {@inheritDoc}
-     */
-    public MessageTypeEnum getResponseType()
-    {
-        return getExtendedRequest().getResponseType();
-    }
-
-
-    /**
-     * {@inheritDoc}
-     */
-    public ResultResponse getResultResponse()
-    {
-        return getExtendedRequest().getResultResponse();
-    }
-
-
+    
+    
     /**
      * {@inheritDoc}
      */
@@ -156,13 +138,4 @@ public class ExtendedRequestDecorator ex
     {
         getExtendedRequest().setRequestValue( requestValue );
     }
-
-
-    /**
-     * {@inheritDoc}
-     */
-    public String toString()
-    {
-        return getExtendedRequest().toString();
-    }
 }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/ExtendedResponseDecorator.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/ExtendedResponseDecorator.java?rev=1064283&r1=1064282&r2=1064283&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/ExtendedResponseDecorator.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/ExtendedResponseDecorator.java
Thu Jan 27 20:02:16 2011
@@ -28,8 +28,10 @@ import org.apache.directory.shared.ldap.
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class ExtendedResponseDecorator extends ResponseDecorator
+public class ExtendedResponseDecorator extends ResponseDecorator implements ExtendedResponse
 {
+    private static final long serialVersionUID = -9029282485890195506L;
+
     /** The response name as a byte[] */
     private byte[] responseNameBytes;
 
@@ -97,4 +99,46 @@ public class ExtendedResponseDecorator e
     {
         return extendedResponseLength;
     }
+
+
+    public byte[] getEncodedValue()
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+
+    public String getID()
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+
+    public String getResponseName()
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+
+    public void setResponseName( String oid )
+    {
+        // TODO Auto-generated method stub
+        
+    }
+
+
+    public byte[] getResponseValue()
+    {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
+
+    public void setResponseValue( byte[] responseValue )
+    {
+        // TODO Auto-generated method stub
+        
+    }
 }



Mime
View raw message