public class LdapNetworkConnector extends NetworkConnector implements NamespaceChangeListener, ObjectChangeListener
bridges, connectionFilter, localURI, serviceSupport
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, getDynamicallyIncludedDestinations, getExcludedDestinations, getLocalUri, getObjectName, getStaticallyIncludedDestinations, handleStart, handleStop, isStarted, isStopped, isStopping, registerNetworkBridgeMBean, removeDemandSubscription, setBrokerService, setConnectionFilter, setDurableDestinations, setDynamicallyIncludedDestinations, setExcludedDestinations, setLocalUri, setObjectName, setStaticallyIncludedDestinations, unregisterNetworkBridgeMBean
getBrokerName, getBrokerURL, getConsumerPriorityBase, getDestinationFilter, getName, getNetworkTTL, getPassword, getPrefetchSize, getUserName, isAlwaysSyncSend, isBridgeTempDestinations, isConduitSubscriptions, isDecreaseNetworkConsumerPriority, isDispatchAsync, isDuplex, isDynamicOnly, isStaticBridge, isSuppressDuplicateQueueSubscriptions, isSuppressDuplicateTopicSubscriptions, setAlwaysSyncSend, setBridgeTempDestinations, setBrokerName, setBrokerURL, setConduitSubscriptions, setConsumerPriorityBase, setDecreaseNetworkConsumerPriority, setDestinationFilter, setDispatchAsync, setDuplex, setDynamicOnly, setName, setNetworkTTL, setPrefetchSize, setStaticBridge, setSuppressDuplicateQueueSubscriptions, setSuppressDuplicateTopicSubscriptions, setUserName
public URI getUri()
public void setUri(URI _uri) throws Exception
_uri
- LDAP server URIException
public void setBase(String _base)
_base
- LDAP base dnpublic void setUser(String _user)
_user
- LDAP dn of userpublic void setPassword(String _password)
setPassword
in class NetworkBridgeConfiguration
_password
- user passwordpublic void setAnonymousAuthentication(boolean _anonymousAuthentication)
_anonymousAuthentication
- set to true to use anonymous authenticationpublic void setSearchScope(String _searchScope) throws Exception
_searchScope
- LDAP JNDI search scopeException
public 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 Service
start
in class NetworkConnector
Exception
public void stop() throws Exception
stop
in interface Service
stop
in class NetworkConnector
Exception
protected void addConnector(SearchResult result) throws Exception
result
- search result of connector to addException
protected void removeConnector(SearchResult result) throws Exception
result
- search result of connector to removeException
protected URI toURI(SearchResult result) throws Exception
result
- search result to convert to URIException
protected String toUUID(SearchResult result)
result
- search result to convert to URIpublic void objectAdded(NamingEvent event)
objectAdded
in interface NamespaceChangeListener
public void objectRemoved(NamingEvent event)
objectRemoved
in interface NamespaceChangeListener
public void objectRenamed(NamingEvent event)
objectRenamed
in interface NamespaceChangeListener
public void objectChanged(NamingEvent event)
objectChanged
in interface ObjectChangeListener
public void namingExceptionThrown(NamingExceptionEvent event)
namingExceptionThrown
in interface NamingListener
Copyright © 2005–2016 The Apache Software Foundation. All rights reserved.