org.apache.camel.component.springldap
Class SpringLdapEndpoint

java.lang.Object
  extended by org.apache.camel.support.ServiceSupport
      extended by org.apache.camel.impl.DefaultEndpoint
          extended by org.apache.camel.component.springldap.SpringLdapEndpoint
All Implemented Interfaces:
org.apache.camel.CamelContextAware, org.apache.camel.Endpoint, org.apache.camel.IsSingleton, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.HasId, org.apache.camel.StatefulService, org.apache.camel.SuspendableService

public class SpringLdapEndpoint
extends org.apache.camel.impl.DefaultEndpoint


Field Summary
 
Fields inherited from class org.apache.camel.support.ServiceSupport
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
 
Constructor Summary
SpringLdapEndpoint(String templateName, org.springframework.ldap.core.LdapTemplate ldapTemplate)
          Initializes the SpringLdapEndpoint using the provided template
 
Method Summary
 org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
          Consumer endpoints are not supported.
 String createEndpointUri()
           
 org.apache.camel.Producer createProducer()
          Creates a Producer using this SpringLdapEndpoint
 boolean isSingleton()
          returns false (constant)
 void setOperation(String operation)
          Sets the LDAP operation to be performed.
 void setScope(String scope)
          sets the scope of the LDAP operation.
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, hashCode, isLenientProperties, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setProperties, setSynchronous, toString
 
Methods inherited from class org.apache.camel.support.ServiceSupport
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

SpringLdapEndpoint

public SpringLdapEndpoint(String templateName,
                          org.springframework.ldap.core.LdapTemplate ldapTemplate)
Initializes the SpringLdapEndpoint using the provided template

Parameters:
templateName - name of the LDAP template
ldapTemplate - LDAP template, see org.springframework.ldap.core.LdapTemplate
Method Detail

createProducer

public org.apache.camel.Producer createProducer()
                                         throws Exception
Creates a Producer using this SpringLdapEndpoint

Throws:
Exception

createConsumer

public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
                                         throws Exception
Consumer endpoints are not supported.

Throws:
Exception

isSingleton

public boolean isSingleton()
returns false (constant)


setScope

public void setScope(String scope)
sets the scope of the LDAP operation. The scope string must be one of "object", "onelevel", or "subtree"

Parameters:
scope -

createEndpointUri

public String createEndpointUri()
Overrides:
createEndpointUri in class org.apache.camel.impl.DefaultEndpoint
Returns:
URI used to create this endpoint

setOperation

public void setOperation(String operation)
Sets the LDAP operation to be performed. The supported operations are defined in org.apache.camel.component.springldap.LdapOperation.



Apache Camel