directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r761465 - in /directory/shared/branches/shared-replication/ldap/src: main/java/org/apache/directory/shared/ldap/message/ test/java/org/apache/directory/shared/ldap/message/
Date Thu, 02 Apr 2009 23:07:46 GMT
Author: elecharny
Date: Thu Apr  2 23:07:45 2009
New Revision: 761465

URL: http://svn.apache.org/viewvc?rev=761465&view=rev
Log:
o Renamed some more XXXRequest to InternalXXXRequest
o BindRequest now inherit from AbandonableRequest

Added:
    directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalAbandonableRequest.java
      - copied, changed from r760984, directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/AbandonableRequest.java
Removed:
    directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/AbandonableRequest.java
Modified:
    directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/AbandonListener.java
    directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/AbstractAbandonableRequest.java
    directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/BindRequestImpl.java
    directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalAddRequest.java
    directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalBindRequest.java
    directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalCompareRequest.java
    directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalDeleteRequest.java
    directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalModifyDnRequest.java
    directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalModifyRequest.java
    directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalSearchRequest.java
    directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/message/BindRequestImplTest.java

Modified: directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/AbandonListener.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/AbandonListener.java?rev=761465&r1=761464&r2=761465&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/AbandonListener.java
(original)
+++ directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/AbandonListener.java
Thu Apr  2 23:07:45 2009
@@ -34,5 +34,5 @@
      * @param req
      *            the request which is abandoned.
      */
-    void requestAbandoned( AbandonableRequest req );
+    void requestAbandoned( InternalAbandonableRequest req );
 }

Modified: directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/AbstractAbandonableRequest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/AbstractAbandonableRequest.java?rev=761465&r1=761464&r2=761465&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/AbstractAbandonableRequest.java
(original)
+++ directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/AbstractAbandonableRequest.java
Thu Apr  2 23:07:45 2009
@@ -31,7 +31,7 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class AbstractAbandonableRequest extends InternalAbstractRequest implements AbandonableRequest
+public class AbstractAbandonableRequest extends InternalAbstractRequest implements InternalAbandonableRequest
 {
     static final long serialVersionUID = -4511116249089399040L;
 

Modified: directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/BindRequestImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/BindRequestImpl.java?rev=761465&r1=761464&r2=761465&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/BindRequestImpl.java
(original)
+++ directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/BindRequestImpl.java
Thu Apr  2 23:07:45 2009
@@ -33,7 +33,7 @@
  * @author <a href="mailto:dev@directory.apache.org"> Apache Directory Project</a>
  * @version $Rev$
  */
-public class BindRequestImpl extends InternalAbstractRequest implements InternalBindRequest
+public class BindRequestImpl extends AbstractAbandonableRequest implements InternalBindRequest
 {
     static final long serialVersionUID = 7945504184130380071L;
 
@@ -73,7 +73,7 @@
      */
     public BindRequestImpl(final int id)
     {
-        super( id, TYPE, true );
+        super( id, TYPE );
         hCredentials = 0;
     }
 

Copied: directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalAbandonableRequest.java
(from r760984, directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/AbandonableRequest.java)
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalAbandonableRequest.java?p2=directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalAbandonableRequest.java&p1=directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/AbandonableRequest.java&r1=760984&r2=761465&rev=761465&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/AbandonableRequest.java
(original)
+++ directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalAbandonableRequest.java
Thu Apr  2 23:07:45 2009
@@ -26,7 +26,7 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public interface AbandonableRequest extends InternalRequest
+public interface InternalAbandonableRequest extends InternalRequest
 {
     /**
      * Abandons this request.

Modified: directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalAddRequest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalAddRequest.java?rev=761465&r1=761464&r2=761465&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalAddRequest.java
(original)
+++ directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalAddRequest.java
Thu Apr  2 23:07:45 2009
@@ -31,7 +31,7 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Revision$
  */
-public interface InternalAddRequest extends SingleReplyRequest, AbandonableRequest
+public interface InternalAddRequest extends SingleReplyRequest, InternalAbandonableRequest
 {
     /** LDAPv3 add request type enum code */
     MessageTypeEnum TYPE = MessageTypeEnum.ADD_REQUEST;

Modified: directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalBindRequest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalBindRequest.java?rev=761465&r1=761464&r2=761465&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalBindRequest.java
(original)
+++ directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalBindRequest.java
Thu Apr  2 23:07:45 2009
@@ -29,7 +29,7 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public interface InternalBindRequest extends SingleReplyRequest
+public interface InternalBindRequest extends SingleReplyRequest, InternalAbandonableRequest
 {
     /** Bind request message type enumeration value */
     MessageTypeEnum TYPE = MessageTypeEnum.BIND_REQUEST;

Modified: directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalCompareRequest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalCompareRequest.java?rev=761465&r1=761464&r2=761465&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalCompareRequest.java
(original)
+++ directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalCompareRequest.java
Thu Apr  2 23:07:45 2009
@@ -30,7 +30,7 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Revision$
  */
-public interface InternalCompareRequest extends SingleReplyRequest, AbandonableRequest
+public interface InternalCompareRequest extends SingleReplyRequest, InternalAbandonableRequest
 {
     /** Compare request message type enum code */
     MessageTypeEnum TYPE = MessageTypeEnum.COMPARE_REQUEST;

Modified: directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalDeleteRequest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalDeleteRequest.java?rev=761465&r1=761464&r2=761465&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalDeleteRequest.java
(original)
+++ directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalDeleteRequest.java
Thu Apr  2 23:07:45 2009
@@ -29,7 +29,7 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Revision$
  */
-public interface InternalDeleteRequest extends SingleReplyRequest, AbandonableRequest
+public interface InternalDeleteRequest extends SingleReplyRequest, InternalAbandonableRequest
 {
     /** Delete request message type enumeration value */
     MessageTypeEnum TYPE = MessageTypeEnum.DEL_REQUEST;

Modified: directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalModifyDnRequest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalModifyDnRequest.java?rev=761465&r1=761464&r2=761465&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalModifyDnRequest.java
(original)
+++ directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalModifyDnRequest.java
Thu Apr  2 23:07:45 2009
@@ -65,7 +65,7 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Revision$
  */
-public interface InternalModifyDnRequest extends SingleReplyRequest, AbandonableRequest
+public interface InternalModifyDnRequest extends SingleReplyRequest, InternalAbandonableRequest
 {
     /** Modify DN request message type enumeration value */
     MessageTypeEnum TYPE = MessageTypeEnum.MOD_DN_REQUEST;

Modified: directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalModifyRequest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalModifyRequest.java?rev=761465&r1=761464&r2=761465&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalModifyRequest.java
(original)
+++ directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalModifyRequest.java
Thu Apr  2 23:07:45 2009
@@ -95,7 +95,7 @@
  *  @version $Revision$
  * 
  */
-public interface InternalModifyRequest extends SingleReplyRequest, AbandonableRequest
+public interface InternalModifyRequest extends SingleReplyRequest, InternalAbandonableRequest
 {
     /** Modify request message type enumeration value */
     MessageTypeEnum TYPE = MessageTypeEnum.MODIFY_REQUEST;

Modified: directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalSearchRequest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalSearchRequest.java?rev=761465&r1=761464&r2=761465&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalSearchRequest.java
(original)
+++ directory/shared/branches/shared-replication/ldap/src/main/java/org/apache/directory/shared/ldap/message/InternalSearchRequest.java
Thu Apr  2 23:07:45 2009
@@ -33,7 +33,7 @@
  * @author <a href="mailto:dev@directory.apache.org"> Apache Directory Project</a>
  * @version $Rev$
  */
-public interface InternalSearchRequest extends ManyReplyRequest, AbandonableRequest
+public interface InternalSearchRequest extends ManyReplyRequest, InternalAbandonableRequest
 {
     /**
      * Different response types that a search request may return. A search

Modified: directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/message/BindRequestImplTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/message/BindRequestImplTest.java?rev=761465&r1=761464&r2=761465&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/message/BindRequestImplTest.java
(original)
+++ directory/shared/branches/shared-replication/ldap/src/test/java/org/apache/directory/shared/ldap/message/BindRequestImplTest.java
Thu Apr  2 23:07:45 2009
@@ -332,6 +332,22 @@
             {
                 return false;
             }
+
+
+            public void abandon()
+            {
+            }
+
+
+            public void addAbandonListener( AbandonListener listener )
+            {
+            }
+
+
+            public boolean isAbandoned()
+            {
+                return false;
+            }
         };
 
         BindRequestImpl req1 = new BindRequestImpl( 5 );



Mime
View raw message