directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r763034 - in /directory/shared/branches/shared-replication/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/messages: AbstractMessage.java Message.java
Date Tue, 07 Apr 2009 23:32:23 GMT
Author: elecharny
Date: Tue Apr  7 23:32:23 2009
New Revision: 763034

URL: http://svn.apache.org/viewvc?rev=763034&view=rev
Log:
Added a convenient getControl( String ) method

Modified:
    directory/shared/branches/shared-replication/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/messages/AbstractMessage.java
    directory/shared/branches/shared-replication/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/messages/Message.java

Modified: directory/shared/branches/shared-replication/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/messages/AbstractMessage.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/messages/AbstractMessage.java?rev=763034&r1=763033&r2=763034&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/messages/AbstractMessage.java
(original)
+++ directory/shared/branches/shared-replication/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/messages/AbstractMessage.java
Tue Apr  7 23:32:23 2009
@@ -108,6 +108,17 @@
 
 
     /**
+     * Gets the control with a specific OID.
+     * 
+     * @return The Control with the specified OID
+     */
+    public Control getControl( String oid )
+    {
+        return controls.get( oid );
+    }
+
+    
+    /**
      * {@inheritDoc}
      */
     public boolean hasControl( String oid )

Modified: directory/shared/branches/shared-replication/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/messages/Message.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/messages/Message.java?rev=763034&r1=763033&r2=763034&view=diff
==============================================================================
--- directory/shared/branches/shared-replication/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/messages/Message.java
(original)
+++ directory/shared/branches/shared-replication/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/messages/Message.java
Tue Apr  7 23:32:23 2009
@@ -59,6 +59,15 @@
 
     
     /**
+     * Gets the control with a specific OID.
+     * 
+     * @return The Control with the specified OID
+     * @see Control
+     */
+    Control getControl( String oid );
+
+    
+    /**
      * Checks whether or not this message has the specified control.
      *
      * @param oid the OID of the control



Mime
View raw message