public class LdapNetworkConnector extends NetworkConnector implements javax.naming.event.NamespaceChangeListener, javax.naming.event.ObjectChangeListener
bridges, connectionFilter, localURI, serviceSupport
Constructor and Description |
---|
LdapNetworkConnector() |
Modifier and Type | Method and Description |
---|---|
protected void |
addConnector(javax.naming.directory.SearchResult result)
add connector of the given URI
|
java.net.URI |
getUri()
returns the next URI from the configured list
|
void |
namingExceptionThrown(javax.naming.event.NamingExceptionEvent event)
invoked when an exception has occurred during a persistent search
|
void |
objectAdded(javax.naming.event.NamingEvent event)
invoked when an entry has been added during a persistent search
|
void |
objectChanged(javax.naming.event.NamingEvent event)
invoked when an entry has been changed during a persistent search
|
void |
objectRemoved(javax.naming.event.NamingEvent event)
invoked when an entry has been removed during a persistent search
|
void |
objectRenamed(javax.naming.event.NamingEvent event)
invoked when an entry has been renamed during a persistent search
|
protected void |
removeConnector(javax.naming.directory.SearchResult result)
remove connector of the given URI
|
void |
setAnonymousAuthentication(boolean _anonymousAuthentication)
sets LDAP anonymous authentication access credentials
|
void |
setBase(java.lang.String _base)
sets the base LDAP dn used for lookup operations
|
void |
setPassword(java.lang.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(java.lang.String _searchFilter)
sets the LDAP search filter as defined in RFC 2254
|
void |
setSearchScope(java.lang.String _searchScope)
sets the LDAP search scope
|
void |
setUri(java.net.URI _uri)
sets the LDAP server URI
|
void |
setUser(java.lang.String _user)
sets the LDAP user for access credentials
|
void |
start()
start the connector
|
void |
stop()
stop the connector
|
java.lang.String |
toString() |
protected java.net.URI |
toURI(javax.naming.directory.SearchResult result)
convert search result into URI
|
protected java.lang.String |
toUUID(javax.naming.directory.SearchResult result)
convert search result into URI
|
activeBridges, addDynamicallyIncludedDestination, addExcludedDestination, addStaticallyIncludedDestination, configureBridge, createLocalTransport, createNetworkBridgeObjectName, getBrokerService, getConnectionFilter, getDurableDestinations, getDynamicallyIncludedDestinations, getExcludedDestinations, getLocalUri, getObjectName, getStaticallyIncludedDestinations, handleStart, handleStop, registerNetworkBridgeMBean, removeDemandSubscription, setBrokerService, setConnectionFilter, setDurableDestinations, setDynamicallyIncludedDestinations, setExcludedDestinations, setLocalUri, setObjectName, setStaticallyIncludedDestinations, unregisterNetworkBridgeMBean
getBrokerName, getBrokerURL, getDestinationFilter, getName, getNetworkTTL, getPassword, getPrefetchSize, getUserName, isBridgeTempDestinations, isConduitSubscriptions, isDecreaseNetworkConsumerPriority, isDispatchAsync, isDuplex, isDynamicOnly, isSuppressDuplicateQueueSubscriptions, isSuppressDuplicateTopicSubscriptions, setBridgeTempDestinations, setBrokerName, setBrokerURL, setConduitSubscriptions, setDecreaseNetworkConsumerPriority, setDestinationFilter, setDispatchAsync, setDuplex, setDynamicOnly, setName, setNetworkTTL, setPrefetchSize, setSuppressDuplicateQueueSubscriptions, setSuppressDuplicateTopicSubscriptions, setUserName
public LdapNetworkConnector()
public java.net.URI getUri()
public void setUri(java.net.URI _uri) throws java.lang.Exception
_uri
- LDAP server URIjava.lang.Exception
public void setBase(java.lang.String _base)
_base
- LDAP base dnpublic void setUser(java.lang.String _user)
_user
- LDAP dn of userpublic void setPassword(java.lang.String _password)
setPassword
in class NetworkBridgeConfiguration
_password
- user passwordpublic void setAnonymousAuthentication(boolean _anonymousAuthentication)
_anonymousAuthentication
- set to true to use anonymous authenticationpublic void setSearchScope(java.lang.String _searchScope) throws java.lang.Exception
_searchScope
- LDAP JNDI search scopejava.lang.Exception
public void setSearchFilter(java.lang.String _searchFilter)
_searchFilter
- LDAP search filterpublic void setSearchEventListener(boolean _searchEventListener)
_searchEventListener
- enable = true, disable = false (default)public void start() throws java.lang.Exception
start
in interface Service
start
in class NetworkConnector
java.lang.Exception
public void stop() throws java.lang.Exception
stop
in interface Service
stop
in class NetworkConnector
java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object
protected void addConnector(javax.naming.directory.SearchResult result) throws java.lang.Exception
result
- search result of connector to addjava.lang.Exception
protected void removeConnector(javax.naming.directory.SearchResult result) throws java.lang.Exception
result
- search result of connector to removejava.lang.Exception
protected java.net.URI toURI(javax.naming.directory.SearchResult result) throws java.lang.Exception
result
- search result to convert to URIjava.lang.Exception
protected java.lang.String toUUID(javax.naming.directory.SearchResult result)
result
- search result to convert to URIpublic void objectAdded(javax.naming.event.NamingEvent event)
objectAdded
in interface javax.naming.event.NamespaceChangeListener
public void objectRemoved(javax.naming.event.NamingEvent event)
objectRemoved
in interface javax.naming.event.NamespaceChangeListener
public void objectRenamed(javax.naming.event.NamingEvent event)
objectRenamed
in interface javax.naming.event.NamespaceChangeListener
public void objectChanged(javax.naming.event.NamingEvent event)
objectChanged
in interface javax.naming.event.ObjectChangeListener
public void namingExceptionThrown(javax.naming.event.NamingExceptionEvent event)
namingExceptionThrown
in interface javax.naming.event.NamingListener
Copyright © 2005-2012. All Rights Reserved.