org.bibop.xml.xforge.components.ldap
Class LDAPComponent

java.lang.Object
  |
  +--org.bibop.xml.xforge.components.AbstractXForgeComponent
        |
        +--org.bibop.xml.xforge.components.AbstractXForgePoolableComponent
              |
              +--org.bibop.xml.xforge.components.ldap.LDAPComponent
All Implemented Interfaces:
org.apache.avalon.framework.component.Component, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.excalibur.pool.Poolable, PrefixesMonitor, XForgeComponent, XMLProducer

public class LDAPComponent
extends AbstractXForgePoolableComponent
implements org.apache.avalon.framework.configuration.Configurable


Field Summary
protected  java.lang.String base
           
protected  boolean bind
           
protected static java.lang.String DSMLNS
           
protected  java.lang.String filter
           
protected  boolean handleErrorsInternally
           
protected  java.lang.String password
           
protected  java.lang.String url
           
protected  java.lang.String user
           
protected  java.lang.String version
           
 
Fields inherited from class org.bibop.xml.xforge.components.AbstractXForgeComponent
contentHandler, context, lexicalHandler, log, parameters, po
 
Constructor Summary
LDAPComponent()
           
 
Method Summary
 void configure(org.apache.avalon.framework.configuration.Configuration config)
          Configure the component
 javax.naming.directory.DirContext getDirContext()
          Prepare the initial LDAP environment
 javax.naming.NamingEnumeration ldapSearch(java.lang.String what)
          Search the LDAP database
 void toSax()
          Query the LDAP server and output using DSML vocabulary
 
Methods inherited from class org.bibop.xml.xforge.components.AbstractXForgeComponent
enableLogging, getActivePrefixes, output, output, setConsumer, setContentHandler, setLexicalHandler, setParameters, setParentPrefixesMonitor, setProcessingOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

url

protected java.lang.String url

base

protected java.lang.String base

user

protected java.lang.String user

password

protected java.lang.String password

filter

protected java.lang.String filter

version

protected java.lang.String version

bind

protected boolean bind

handleErrorsInternally

protected boolean handleErrorsInternally

DSMLNS

protected static final java.lang.String DSMLNS
See Also:
Constant Field Values
Constructor Detail

LDAPComponent

public LDAPComponent()
Method Detail

configure

public void configure(org.apache.avalon.framework.configuration.Configuration config)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Configure the component

Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable
Overrides:
configure in class AbstractXForgeComponent
Throws:
org.apache.avalon.framework.configuration.ConfigurationException

getDirContext

public javax.naming.directory.DirContext getDirContext()
                                                throws java.lang.Exception
Prepare the initial LDAP environment

Throws:
java.lang.Exception

ldapSearch

public javax.naming.NamingEnumeration ldapSearch(java.lang.String what)
                                          throws javax.naming.NamingException,
                                                 java.lang.Exception
Search the LDAP database

Throws:
javax.naming.NamingException
java.lang.Exception

toSax

public void toSax()
           throws org.xml.sax.SAXException
Query the LDAP server and output using DSML vocabulary

Specified by:
toSax in interface XForgeComponent
Throws:
org.xml.sax.SAXException


Copyright 2003 Bibop Research International. All Rights Reserved.