org.apache.camel.component.ldap
Class LdapEndpoint

java.lang.Object
  extended by org.apache.camel.impl.DefaultEndpoint
      extended by org.apache.camel.component.ldap.LdapEndpoint
All Implemented Interfaces:
CamelContextAware, Endpoint, IsSingleton

public class LdapEndpoint
extends DefaultEndpoint

Represents an endpoint that synchronously invokes an LDAP server when a producer sends a message to it.

Version:

Field Summary
static String OBJECT_SCOPE
           
static String ONELEVEL_SCOPE
           
static String SUBTREE_SCOPE
           
static String SYSTEM_DN
           
 
Constructor Summary
  LdapEndpoint(String endpointUri, String remaining)
           
protected LdapEndpoint(String endpointUri, String remaining, LdapComponent component)
           
 
Method Summary
 Consumer createConsumer(Processor processor)
          Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor
 Producer createProducer()
          Creates a new producer which is used send messages into the endpoint
 String getBase()
           
 String getScope()
           
 boolean isSingleton()
          Wheter this class supports being singleton or not.
 void setBase(String base)
           
 void setScope(String scope)
           
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
configureProperties, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, createScheduledExecutorService, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getExecutorService, getScheduledExecutorService, hashCode, isLenientProperties, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setExecutorService, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SYSTEM_DN

public static final String SYSTEM_DN
See Also:
Constant Field Values

OBJECT_SCOPE

public static final String OBJECT_SCOPE
See Also:
Constant Field Values

ONELEVEL_SCOPE

public static final String ONELEVEL_SCOPE
See Also:
Constant Field Values

SUBTREE_SCOPE

public static final String SUBTREE_SCOPE
See Also:
Constant Field Values
Constructor Detail

LdapEndpoint

protected LdapEndpoint(String endpointUri,
                       String remaining,
                       LdapComponent component)
                throws URISyntaxException
Throws:
URISyntaxException

LdapEndpoint

public LdapEndpoint(String endpointUri,
                    String remaining)
             throws URISyntaxException
Throws:
URISyntaxException
Method Detail

createConsumer

public Consumer createConsumer(Processor processor)
                        throws Exception
Description copied from interface: Endpoint
Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor

Parameters:
processor - the given processor
Returns:
a newly created consumer
Throws:
Exception - can be thrown

createProducer

public Producer createProducer()
                        throws Exception
Description copied from interface: Endpoint
Creates a new producer which is used send messages into the endpoint

Returns:
a newly created producer
Throws:
Exception - can be thrown

isSingleton

public boolean isSingleton()
Description copied from interface: IsSingleton
Wheter this class supports being singleton or not.

Returns:
true to be a single shared instance, false to create new instances.

getBase

public String getBase()

setBase

public void setBase(String base)

getScope

public String getScope()

setScope

public void setScope(String scope)


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.