public class LdapNetworkConnector extends NetworkConnector implements NamespaceChangeListener, ObjectChangeListener
bridges, connectionFilter, localURI, serviceSupportdynamicallyIncludedDestinations, excludedDestinations, staticallyIncludedDestinations| Constructor and Description |
|---|
LdapNetworkConnector() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addConnector(SearchResult result)
add connector of the given URI
|
URI |
getUri()
returns the next URI from the configured list
|
void |
namingExceptionThrown(NamingExceptionEvent event)
invoked when an exception has occurred during a persistent search
|
void |
objectAdded(NamingEvent event)
invoked when an entry has been added during a persistent search
|
void |
objectChanged(NamingEvent event)
invoked when an entry has been changed during a persistent search
|
void |
objectRemoved(NamingEvent event)
invoked when an entry has been removed during a persistent search
|
void |
objectRenamed(NamingEvent event)
invoked when an entry has been renamed during a persistent search
|
protected void |
removeConnector(SearchResult result)
remove connector of the given URI
|
void |
setAnonymousAuthentication(boolean anonymousAuthentication)
sets LDAP anonymous authentication access credentials
|
void |
setBase(String base)
sets the base LDAP dn used for lookup operations
|
void |
setPassword(String password)
sets the LDAP password for access credentials
|
void |
setSearchEventListener(boolean searchEventListener)
enables/disable a persistent search to the LDAP server as defined in
draft-ietf-ldapext-psearch-03.txt (2.16.840.1.113730.3.4.3)
|
void |
setSearchFilter(String searchFilter)
sets the LDAP search filter as defined in RFC 2254
|
void |
setSearchScope(String searchScope)
sets the LDAP search scope
|
void |
setUri(URI uri)
sets the LDAP server URI
|
void |
setUser(String user)
sets the LDAP user for access credentials
|
void |
start()
start the connector
|
void |
stop()
stop the connector
|
String |
toString() |
protected URI |
toURI(SearchResult result)
convert search result into URI
|
protected String |
toUUID(SearchResult result)
convert search result into URI
|
activeBridges, addDynamicallyIncludedDestination, addExcludedDestination, addStaticallyIncludedDestination, configureBridge, createLocalTransport, createNetworkBridgeObjectName, getBrokerService, getConnectionFilter, getDurableDestinations, getDurableTopicDestinations, getLocalUri, getObjectName, handleStart, handleStop, isStarted, isStopped, isStopping, registerNetworkBridgeMBean, removeDemandSubscription, setBrokerService, setConnectionFilter, setDurableDestinations, setLocalUri, setObjectName, unregisterNetworkBridgeMBeangetAdvisoryAckPercentage, getAdvisoryPrefetchSize, getBridgeFactory, getBrokerName, getBrokerURL, getClientIdToken, getConsumerPriorityBase, getConsumerTTL, getDestinationFilter, getDynamicallyIncludedDestinations, getExcludedDestinations, getGcSweepTime, getMessageTTL, getName, getNetworkTTL, getPassword, getPrefetchSize, getStaticallyIncludedDestinations, getUserName, isAdvisoryForFailedForward, isAlwaysSyncSend, isBridgeTempDestinations, isCheckDuplicateMessagesOnDuplex, isConduitNetworkQueueSubscriptions, isConduitSubscriptions, isDecreaseNetworkConsumerPriority, isDispatchAsync, isDuplex, isDynamicOnly, isGcDestinationViews, isStaticBridge, isSuppressDuplicateQueueSubscriptions, isSuppressDuplicateTopicSubscriptions, isSyncDurableSubs, isUseBrokerNamesAsIdSeed, isUseCompression, isUseVirtualDestSubs, isUseVirtualDestSus, setAdvisoryAckPercentage, setAdvisoryForFailedForward, setAdvisoryPrefetchSize, setAlwaysSyncSend, setBridgeFactory, setBridgeTempDestinations, setBrokerName, setBrokerURL, setCheckDuplicateMessagesOnDuplex, setClientIdToken, setConduitNetworkQueueSubscriptions, setConduitSubscriptions, setConsumerPriorityBase, setConsumerTTL, setDecreaseNetworkConsumerPriority, setDestinationFilter, setDispatchAsync, setDuplex, setDynamicallyIncludedDestinations, setDynamicOnly, setExcludedDestinations, setGcDestinationViews, setGcSweepTime, setMessageTTL, setName, setNetworkTTL, setPrefetchSize, setStaticallyIncludedDestinations, setStaticBridge, setSuppressDuplicateQueueSubscriptions, setSuppressDuplicateTopicSubscriptions, setSyncDurableSubs, setUseBrokerNameAsIdSees, setUseCompression, setUserName, setUseVirtualDestSubspublic LdapNetworkConnector()
public URI getUri()
public void setUri(URI uri) throws Exception
uri - LDAP server URIExceptionpublic void setBase(String base)
base - LDAP base dnpublic void setUser(String user)
user - LDAP dn of userpublic void setPassword(String password)
setPassword in class NetworkBridgeConfigurationpassword - user passwordpublic void setAnonymousAuthentication(boolean anonymousAuthentication)
anonymousAuthentication - set to true to use anonymous authenticationpublic void setSearchScope(String searchScope) throws Exception
searchScope - LDAP JNDI search scopeExceptionpublic void setSearchFilter(String searchFilter)
searchFilter - LDAP search filterpublic void setSearchEventListener(boolean searchEventListener)
searchEventListener - enable = true, disable = false (default)public void start() throws Exception
start in interface org.apache.activemq.Servicestart in class NetworkConnectorExceptionpublic void stop() throws Exception
stop in interface org.apache.activemq.Servicestop in class NetworkConnectorExceptionprotected void addConnector(SearchResult result) throws Exception
result - search result of connector to addExceptionprotected void removeConnector(SearchResult result) throws Exception
result - search result of connector to removeExceptionprotected URI toURI(SearchResult result) throws Exception
result - search result to convert to URIExceptionprotected String toUUID(SearchResult result)
result - search result to convert to URIpublic void objectAdded(NamingEvent event)
objectAdded in interface NamespaceChangeListenerpublic void objectRemoved(NamingEvent event)
objectRemoved in interface NamespaceChangeListenerpublic void objectRenamed(NamingEvent event)
objectRenamed in interface NamespaceChangeListenerpublic void objectChanged(NamingEvent event)
objectChanged in interface ObjectChangeListenerpublic void namingExceptionThrown(NamingExceptionEvent event)
namingExceptionThrown in interface NamingListenerCopyright © 2005–2020 The Apache Software Foundation. All rights reserved.