|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.network.NetworkBridgeConfiguration
org.apache.activemq.network.NetworkConnector
org.apache.activemq.network.LdapNetworkConnector
public class LdapNetworkConnector
class to create dynamic network connectors listed in an directory server using the LDAP v3 protocol as defined in RFC 2251, the entries listed in the directory server must implement the ipHost and ipService objectClasses as defined in RFC 2307.
Field Summary |
---|
Fields inherited from class org.apache.activemq.network.NetworkConnector |
---|
bridges, connectionFilter, localURI, serviceSupport |
Constructor Summary | |
---|---|
LdapNetworkConnector()
|
Method Summary | |
---|---|
protected void |
addConnector(SearchResult result)
add connector of the given URI |
String |
getName()
returns the name of the connector |
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 |
protected URI |
toURI(SearchResult result)
convert search result into URI |
protected String |
toUUID(SearchResult result)
convert search result into URI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LdapNetworkConnector()
Method Detail |
---|
public URI getUri()
public void setUri(URI _uri) throws Exception
_uri
- LDAP server URI
Exception
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 scope
Exception
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
public String getName()
getName
in class NetworkBridgeConfiguration
protected void addConnector(SearchResult result) throws Exception
result
- search result of connector to add
Exception
protected void removeConnector(SearchResult result) throws Exception
result
- search result of connector to remove
Exception
protected URI toURI(SearchResult result) throws Exception
result
- search result to convert to URI
Exception
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |