directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r1074595 - in /directory/shared/branches/akarasulu/ldap-codec/src/main/java/org/apache/directory/shared/ldap/codec: api/LdapCodecService.java osgi/DefaultLdapCodecService.java
Date Fri, 25 Feb 2011 15:57:14 GMT
Author: akarasulu
Date: Fri Feb 25 15:57:14 2011
New Revision: 1074595

URL: http://svn.apache.org/viewvc?rev=1074595&view=rev
Log:
adding method to check if an extended operation is registered

Modified:
    directory/shared/branches/akarasulu/ldap-codec/src/main/java/org/apache/directory/shared/ldap/codec/api/LdapCodecService.java
    directory/shared/branches/akarasulu/ldap-codec/src/main/java/org/apache/directory/shared/ldap/codec/osgi/DefaultLdapCodecService.java

Modified: directory/shared/branches/akarasulu/ldap-codec/src/main/java/org/apache/directory/shared/ldap/codec/api/LdapCodecService.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/akarasulu/ldap-codec/src/main/java/org/apache/directory/shared/ldap/codec/api/LdapCodecService.java?rev=1074595&r1=1074594&r2=1074595&view=diff
==============================================================================
--- directory/shared/branches/akarasulu/ldap-codec/src/main/java/org/apache/directory/shared/ldap/codec/api/LdapCodecService.java
(original)
+++ directory/shared/branches/akarasulu/ldap-codec/src/main/java/org/apache/directory/shared/ldap/codec/api/LdapCodecService.java
Fri Feb 25 15:57:14 2011
@@ -149,6 +149,16 @@ public interface LdapCodecService
     ExtendedRequestFactory<?,?> unregisterExtendedRequest( String oid );
     
     
+    /**
+     * Checks to see if an extended operation, either a standard request 
+     * response, pair or just an unsolicited response is registered.
+     *
+     * @param oid The object identifier for the extended operation
+     * @return true if registered, false if not
+     */
+    boolean isExtendedOperationRegistered( String oid );
+    
+    
     // ------------------------------------------------------------------------
     // Extended Response Methods
     // ------------------------------------------------------------------------

Modified: directory/shared/branches/akarasulu/ldap-codec/src/main/java/org/apache/directory/shared/ldap/codec/osgi/DefaultLdapCodecService.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/akarasulu/ldap-codec/src/main/java/org/apache/directory/shared/ldap/codec/osgi/DefaultLdapCodecService.java?rev=1074595&r1=1074594&r2=1074595&view=diff
==============================================================================
--- directory/shared/branches/akarasulu/ldap-codec/src/main/java/org/apache/directory/shared/ldap/codec/osgi/DefaultLdapCodecService.java
(original)
+++ directory/shared/branches/akarasulu/ldap-codec/src/main/java/org/apache/directory/shared/ldap/codec/osgi/DefaultLdapCodecService.java
Fri Feb 25 15:57:14 2011
@@ -578,4 +578,13 @@ public class DefaultLdapCodecService imp
         
         return resp;
     }
+
+
+    /**
+     * {@inheritDoc}
+     */
+    public boolean isExtendedOperationRegistered( String oid )
+    {
+        return extReqFactories.containsKey( oid ) || unsolicitedFactories.containsKey( oid
);
+    }
 }



Mime
View raw message