servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject svn commit: r893707 - in /servicemix/components/bindings/servicemix-ldap/trunk/src/main/java/org/apache/servicemix/ldap: LdapComponent.java LdapEndpoint.java LdapPollerEndpoint.java LdapSenderEndpoint.java
Date Thu, 24 Dec 2009 08:34:37 GMT
Author: jbonofre
Date: Thu Dec 24 08:34:36 2009
New Revision: 893707

URL: http://svn.apache.org/viewvc?rev=893707&view=rev
Log:
Prepare the LDAP component for the new feature: poller endpoint and generic listener endpoint
with multi operations support and both with WSDL support.

Added:
    servicemix/components/bindings/servicemix-ldap/trunk/src/main/java/org/apache/servicemix/ldap/LdapEndpoint.java
      - copied, changed from r893624, servicemix/components/bindings/servicemix-ldap/trunk/src/main/java/org/apache/servicemix/ldap/LdapSenderEndpoint.java
Removed:
    servicemix/components/bindings/servicemix-ldap/trunk/src/main/java/org/apache/servicemix/ldap/LdapSenderEndpoint.java
Modified:
    servicemix/components/bindings/servicemix-ldap/trunk/src/main/java/org/apache/servicemix/ldap/LdapComponent.java
    servicemix/components/bindings/servicemix-ldap/trunk/src/main/java/org/apache/servicemix/ldap/LdapPollerEndpoint.java

Modified: servicemix/components/bindings/servicemix-ldap/trunk/src/main/java/org/apache/servicemix/ldap/LdapComponent.java
URL: http://svn.apache.org/viewvc/servicemix/components/bindings/servicemix-ldap/trunk/src/main/java/org/apache/servicemix/ldap/LdapComponent.java?rev=893707&r1=893706&r2=893707&view=diff
==============================================================================
--- servicemix/components/bindings/servicemix-ldap/trunk/src/main/java/org/apache/servicemix/ldap/LdapComponent.java
(original)
+++ servicemix/components/bindings/servicemix-ldap/trunk/src/main/java/org/apache/servicemix/ldap/LdapComponent.java
Thu Dec 24 08:34:36 2009
@@ -48,7 +48,7 @@
     }
     
     protected Class[] getEndpointsClasses() {
-        return new Class[] {LdapPollerEndpoint.class, LdapSenderEndpoint.class};
+        return new Class[] {LdapPollerEndpoint.class, LdapEndpoint.class};
     }
 
 }

Copied: servicemix/components/bindings/servicemix-ldap/trunk/src/main/java/org/apache/servicemix/ldap/LdapEndpoint.java
(from r893624, servicemix/components/bindings/servicemix-ldap/trunk/src/main/java/org/apache/servicemix/ldap/LdapSenderEndpoint.java)
URL: http://svn.apache.org/viewvc/servicemix/components/bindings/servicemix-ldap/trunk/src/main/java/org/apache/servicemix/ldap/LdapEndpoint.java?p2=servicemix/components/bindings/servicemix-ldap/trunk/src/main/java/org/apache/servicemix/ldap/LdapEndpoint.java&p1=servicemix/components/bindings/servicemix-ldap/trunk/src/main/java/org/apache/servicemix/ldap/LdapSenderEndpoint.java&r1=893624&r2=893707&rev=893707&view=diff
==============================================================================
--- servicemix/components/bindings/servicemix-ldap/trunk/src/main/java/org/apache/servicemix/ldap/LdapSenderEndpoint.java
(original)
+++ servicemix/components/bindings/servicemix-ldap/trunk/src/main/java/org/apache/servicemix/ldap/LdapEndpoint.java
Thu Dec 24 08:34:36 2009
@@ -20,16 +20,20 @@
 import org.apache.commons.logging.LogFactory;
 import org.apache.servicemix.common.endpoints.ProviderEndpoint;
 
-public class LdapSenderEndpoint extends ProviderEndpoint implements LdapEndpointType {
+/**
+ * <p>
+ * This generic endpoint is a listener which is waiting for incoming normalized message
+ * and perform the action on the LDAP directory (depending of the operation): search, add,
delete, modify.
+ * </p>
+ * 
+ * @author jbonofre
+ */
+public class LdapEndpoint extends ProviderEndpoint implements LdapEndpointType {
     
     // logging facility
-    private final static transient Log LOG = LogFactory.getLog(LdapSenderEndpoint.class);
+    private final static transient Log LOG = LogFactory.getLog(LdapEndpoint.class);
     
-    // attributes
-    private String host;
-    private int port = 389;
-    
-    public LdapSenderEndpoint() {
+    public LdapEndpoint() {
         
     }
 

Modified: servicemix/components/bindings/servicemix-ldap/trunk/src/main/java/org/apache/servicemix/ldap/LdapPollerEndpoint.java
URL: http://svn.apache.org/viewvc/servicemix/components/bindings/servicemix-ldap/trunk/src/main/java/org/apache/servicemix/ldap/LdapPollerEndpoint.java?rev=893707&r1=893706&r2=893707&view=diff
==============================================================================
--- servicemix/components/bindings/servicemix-ldap/trunk/src/main/java/org/apache/servicemix/ldap/LdapPollerEndpoint.java
(original)
+++ servicemix/components/bindings/servicemix-ldap/trunk/src/main/java/org/apache/servicemix/ldap/LdapPollerEndpoint.java
Thu Dec 24 08:34:36 2009
@@ -37,9 +37,12 @@
 import org.apache.servicemix.ldap.marshaler.LdapMarshalerSupport;
 
 /**
- * A polling endpoints that looks for a LDAP entry (matching a filter) and sends
- * the LDAP attributes to a target service (via the JBI bus). The polling endpoint
- * uses a LDAP marshaler to send the data as a JBI message.
+ * <p>
+ * This polling endpoint periodically request the LDAP directory (using endpoint properties)
+ * and sends the LDAP entries/attributes response into the NMR.
+ * This poller uses the LDAP marshaler to marshal/unmarshal LDAP request result into a normalized
+ * message.
+ * </p>
  * 
  * @author jbonofre
  * @org.apache.xbean.XBean element="poller"



Mime
View raw message