|
||||||||||
| 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 |
| Fields inherited from class org.apache.activemq.network.NetworkBridgeConfiguration |
|---|
dynamicallyIncludedDestinations, excludedDestinations, staticallyIncludedDestinations |
| Constructor Summary | |
|---|---|
LdapNetworkConnector()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LdapNetworkConnector()
| Method Detail |
|---|
public URI getUri()
public void setUri(URI uri)
throws Exception
_uri - LDAP server URI
Exceptionpublic 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 authentication
public void setSearchScope(String searchScope)
throws Exception
_searchScope - LDAP JNDI search scope
Exceptionpublic 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 NetworkConnectorException
public void stop()
throws Exception
stop in interface Servicestop in class NetworkConnectorExceptionpublic String toString()
toString in class Object
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
Exceptionprotected 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 NamingListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||