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, unregisterNetworkBridgeMBeangetBrokerName, 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, setUserNamepublic 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 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 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 Servicestart in class NetworkConnectorExceptionpublic void stop() throws Exception
stop in interface 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–2017. All rights reserved.