directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r325848 - /directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/ExtendedOperationHandler.java
Date Mon, 17 Oct 2005 06:29:37 GMT
Author: trustin
Date: Sun Oct 16 23:29:30 2005
New Revision: 325848

URL: http://svn.apache.org/viewcvs?rev=325848&view=rev
Log:
Added ExtendedOperationHandler interface to let users implement and register their own extended
operation handlers.

Added:
    directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/ExtendedOperationHandler.java
  (with props)

Added: directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/ExtendedOperationHandler.java
URL: http://svn.apache.org/viewcvs/directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/ExtendedOperationHandler.java?rev=325848&view=auto
==============================================================================
--- directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/ExtendedOperationHandler.java
(added)
+++ directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/ExtendedOperationHandler.java
Sun Oct 16 23:29:30 2005
@@ -0,0 +1,49 @@
+/*
+ *   @(#) $Id$
+ *   
+ *   Copyright 2004 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+package org.apache.ldap.server.protocol;
+
+import javax.naming.ldap.ExtendedResponse;
+
+import org.apache.ldap.common.message.ExtendedRequest;
+
+/**
+ * An extension (hook) point that enables an implementor to provide his or her
+ * own LDAP 'Extended' operation.  
+ *
+ * @author The Apache Directory Project
+ * @version $Rev$, $Date$
+ *
+ */
+public interface ExtendedOperationHandler
+{
+    /**
+     * Returns the OID of the extended operation this handler can handle.
+     */
+    String getOid();
+    
+    /**
+     * Handles the specified extended operation and returns its response.
+     * Don't lock the returning response; messageID and resultCode will
+     * be filled by caller automatically.
+     * 
+     * @param request the LDAP Extended operation
+     * @throws Exception if failed to handle the operation
+     */
+    ExtendedResponse handleExtendedOperation( ExtendedRequest request ) throws Exception;
+}

Propchange: directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/ExtendedOperationHandler.java
------------------------------------------------------------------------------
    svn:keywords = HeadURL Id LastChangedBy LastChangedDate LastChangedRevision



Mime
View raw message