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, 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 java.net.URI getUri()
public void setUri(java.net.URI _uri) throws java.lang.Exception
_uri - LDAP server URIjava.lang.Exceptionpublic 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.Exceptionpublic 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 Servicestart in class NetworkConnectorjava.lang.Exceptionpublic void stop() throws java.lang.Exception
stop in interface Servicestop in class NetworkConnectorjava.lang.Exceptionpublic java.lang.String toString()
toString in class java.lang.Objectprotected void addConnector(javax.naming.directory.SearchResult result) throws java.lang.Exception
result - search result of connector to addjava.lang.Exceptionprotected void removeConnector(javax.naming.directory.SearchResult result) throws java.lang.Exception
result - search result of connector to removejava.lang.Exceptionprotected java.net.URI toURI(javax.naming.directory.SearchResult result) throws java.lang.Exception
result - search result to convert to URIjava.lang.Exceptionprotected 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.NamespaceChangeListenerpublic void objectRemoved(javax.naming.event.NamingEvent event)
objectRemoved in interface javax.naming.event.NamespaceChangeListenerpublic void objectRenamed(javax.naming.event.NamingEvent event)
objectRenamed in interface javax.naming.event.NamespaceChangeListenerpublic void objectChanged(javax.naming.event.NamingEvent event)
objectChanged in interface javax.naming.event.ObjectChangeListenerpublic void namingExceptionThrown(javax.naming.event.NamingExceptionEvent event)
namingExceptionThrown in interface javax.naming.event.NamingListenerCopyright © 2005-2012. All Rights Reserved.