You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by jb...@apache.org on 2010/01/10 16:23:04 UTC

svn commit: r897648 - /servicemix/components/bindings/servicemix-ldap/trunk/src/main/java/org/apache/servicemix/ldap/LdapEndpoint.java

Author: jbonofre
Date: Sun Jan 10 15:23:02 2010
New Revision: 897648

URL: http://svn.apache.org/viewvc?rev=897648&view=rev
Log:
Describe the endpoint behavior.

Modified:
    servicemix/components/bindings/servicemix-ldap/trunk/src/main/java/org/apache/servicemix/ldap/LdapEndpoint.java

Modified: servicemix/components/bindings/servicemix-ldap/trunk/src/main/java/org/apache/servicemix/ldap/LdapEndpoint.java
URL: http://svn.apache.org/viewvc/servicemix/components/bindings/servicemix-ldap/trunk/src/main/java/org/apache/servicemix/ldap/LdapEndpoint.java?rev=897648&r1=897647&r2=897648&view=diff
==============================================================================
--- servicemix/components/bindings/servicemix-ldap/trunk/src/main/java/org/apache/servicemix/ldap/LdapEndpoint.java (original)
+++ servicemix/components/bindings/servicemix-ldap/trunk/src/main/java/org/apache/servicemix/ldap/LdapEndpoint.java Sun Jan 10 15:23:02 2010
@@ -16,6 +16,8 @@
  */
 package org.apache.servicemix.ldap;
 
+import javax.jbi.messaging.MessageExchange;
+
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.apache.servicemix.common.endpoints.ProviderEndpoint;
@@ -33,8 +35,49 @@
     // logging facility
     private final static transient Log LOG = LogFactory.getLog(LdapEndpoint.class);
     
+    /**
+     * <p>
+     * Generic LDAP endpoint that waiting for incoming SOAP message and
+     * process the corresponding operation (search, add, delete, modify).
+     * </p>
+     */
     public LdapEndpoint() {
-        
+        super();
+    }
+    
+    /*
+     * (non-Javadoc)
+     * @see org.apache.servicemix.common.endpoints.ProviderEndpoint#activate()
+     */
+    public void activate() {
+        this.activate();
+    }
+    
+    /*
+     * (non-Javadoc)
+     * @see org.apache.servicemix.common.endpoints.SimpleEndpoint#start()
+     */
+    public void start() {
+        this.start();
+    }
+    
+    /*
+     * (non-Javadoc)
+     * @see org.apache.servicemix.common.endpoints.ProviderEndpoint#process(javax.jbi.messaging.MessageExchange)
+     */
+    public void process(MessageExchange exchange) {
+        /*
+         * Description of this endpoint behavior:
+         * The endpoint expects a incoming message containing a payload with a SOAP envelope.
+         * This SOAP envelop can have the following operations:
+         *   * search
+         *   * add
+         *   * delete
+         *   * modify
+         *  Depending of the operation, the marshaled request can have different form.
+         *  The endpoint could work with the following MEP: InOut (returning the found/added/deleted/modified LDAP entries)
+         *  InOnly (no message returned), RobustInOnly (only a ACK message is sent back). InOptionalOut will not be supported.  
+         */
     }
 
 }