org.apache.cocoon.transformation
Class LDAPTransformer

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.xml.AbstractXMLProducer
          extended by org.apache.cocoon.xml.AbstractXMLPipe
              extended by org.apache.cocoon.transformation.AbstractTransformer
                  extended by org.apache.cocoon.transformation.LDAPTransformer
All Implemented Interfaces:
Poolable, Recyclable, Component, LogEnabled, SitemapModelComponent, Transformer, XMLPipe, XMLProducer, XMLConsumer, ContentHandler, LexicalHandler

public class LDAPTransformer
extends AbstractTransformer

The LDAPTransformer can be plugged into a pipeline to transform the SAX events into queries and responses to/from a LDAP interface.
The file will be specified in a parameter tag in the sitemap pipeline to the transformer as follows:

<map:transform type="ldap"/>


The following DTD is valid:
<!ELEMENT execute-query (attribute+ | show-attribute? | scope? | initializer? | initial-context? | authentication? | error-element? | sax-error? doc-element? | row-element? | version? | serverurl? | rootdn? | password? | deref-link? | count-limit? | searchbase, filter)>
<!ELEMENT execute-increment (attribute | show-attribute? | scope? | initializer? | initial-context? | authentication? | error-element? | sax-error? | doc-element? | row-element? | version? | serverurl? | rootdn? | password? | deref-link? | count-limit? | searchbase, filter)>
increments (+1) an integer attribute on a directory-server (ldap)
<!ELEMENT execute-replace (attribute | show-attribute? | scope? | initializer? | initial-context? | authentication? | error-element? | sax-error? | doc-element? | row-element? | version? | serverurl? | rootdn? | password? | deref-link? | count-limit? | searchbase, filter)>
replace attribute on a directory-server (ldap)
<!ELEMENT execute-add (attribute | show-attribute? | scope? | initializer? | initial-context? | authentication? | error-element? | sax-error? | doc-element? | row-element? | version? | serverurl? | rootdn? | password? | deref-link? | count-limit? | searchbase, filter)>
add attribute on a directory-server (ldap)

<!ELEMENT initializer (#PCDATA)>+ (default: "com.sun.jndi.ldap.LdapCtxFactory")
<!ELEMENT initial-context (#EMPTY)>
<!ATTLIST initial-context name CDATA #REQUIRED value CDATA #REQUIRED >
<!ELEMENT authentication (#PCDATA)>+ (default: "simple")
<!ELEMENT version (#PCDATA)>+ (default: "2")
<!ELEMENT serverurl (#PCDATA)>+
<!ELEMENT port (#PCDATA)>+ (default: 389)
<!ELEMENT rootdn (#PCDATA)>+
<!ELEMENT password (#PCDATA)>+
<!ELEMENT scope (ONELEVEL_SCOPE | SUBTREE_SCOPE | OBJECT_SCOPE)>+ (default: ONELEVEL_SCOPE)
<!ELEMENT searchbase (#PCDATA)>+
<!ELEMENT doc-element (#PCDATA)>+ (default: "doc-element")
<!ELEMENT row-element (#PCDATA)>+ (default: "row-element")
<!ELEMENT dn-attribute (#PCDATA)>+ (default: "" meaning no DN attribute)
<!ELEMENT error-element (#PCDATA)>+ (default: "ldap-error") (in case of error returned error tag)
<!ELEMENT sax_error (TRUE | FALSE)>+; (default: FALSE) (throws SAX-Exception instead of error tag)
<!ELEMENT attribute (#PCDATA)>
<!ATTLIST attribute name CDATA #IMPLIED mode (append|replace) 'replace' #IMPLIED > (in case execute-replace or execute-add elements using)
<!ELEMENT show-attribute (TRUE | FALSE)> (default: TRUE)
<!ELEMENT filter (#PCDATA | execute-query)+>
<!ELEMENT deref-link (TRUE | FALSE)> (default: FALSE)
<!ELEMENT count-limit (#PCDATA)> (integer default: 0 -> no limit)
<!ELEMENT time-limit (#PCDATA)> (integer default: 0 -> infinite)
<!ELEMENT debug (TRUE | FALSE)>+; (default: FALSE)

+ can also be defined as parameter in the sitemap.

Version:
$Id: LDAPTransformer.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Field Summary
protected  String current_name
          The name of the value element we're currently receiving
protected  int current_query_index
          The offset of the current query in the queries list
protected  int current_state
          The current state of the event receiving FSM
protected  StringBuffer current_value
          The value of the value element we're currently receiving
protected  HashMap default_properties
          Default parameters that might apply to all queries
protected  LexicalHandler lexical_handler
           
static String MAGIC_ATTRIBUTE_ELEMENT
          The LDAP namespace element names
static String MAGIC_ATTRIBUTE_ELEMENT_ATTRIBUTE
           
static String MAGIC_ATTRIBUTE_ELEMENT_MODE_ATTRIBUTE
           
static String MAGIC_ATTRIBUTE_ELEMENT_MODE_ATTRIBUTE_DEFAULT
           
static String MAGIC_ATTRIBUTE_ELEMENT_MODE_ATTRIBUTE_VALUE_A
           
static String MAGIC_AUTHENTICATION_ELEMENT
           
static String MAGIC_COUNT_LIMIT_ELEMENT
           
static String MAGIC_DEBUG_ELEMENT
           
static String MAGIC_DEREF_LINK_ELEMENT
           
static String MAGIC_DN_ATTRIBUTE
           
static String MAGIC_DOC_ELEMENT
           
static String MAGIC_ENCODING_ELEMENT
           
static String MAGIC_ERROR_ELEMENT
           
static String MAGIC_EXECUTE_ADD
           
static String MAGIC_EXECUTE_INCREMENT
           
static String MAGIC_EXECUTE_QUERY
           
static String MAGIC_EXECUTE_REPLACE
           
static String MAGIC_FILTER_ELEMENT
           
static String MAGIC_INITIAL_CONTEXT_ELEMENT
           
static String MAGIC_INITIAL_CONTEXT_NAME_ATTRIBUTE
           
static String MAGIC_INITIAL_CONTEXT_VALUE_ATTRIBUTE
           
static String MAGIC_INITIALIZER_ELEMENT
           
static String MAGIC_PASSWORD_ELEMENT
           
static String MAGIC_PORT_ELEMENT
           
static String MAGIC_ROOT_DN_ELEMENT
           
static String MAGIC_ROW_ELEMENT
           
static String MAGIC_SAX_ERROR
           
static String MAGIC_SCOPE_ELEMENT
           
static String MAGIC_SEARCHBASE_ELEMENT
           
static String MAGIC_SERVERURL_ELEMENT
           
static String MAGIC_SHOW_ATTRIBUTE_ELEMENT
           
static String MAGIC_TIME_LIMIT_ELEMENT
           
static String MAGIC_VERSION_ELEMENT
           
static String my_name
           
static String my_uri
          The LDAP namespace ("http://apache.org/cocoon/LDAP/1.0")
protected  Vector queries
          The list of queries that we're currently working on
static int STATE_INSIDE_ATTRIBUTE_ELEMENT
           
static int STATE_INSIDE_AUTHENTICATION_ELEMENT
           
static int STATE_INSIDE_COUNT_LIMIT_ELEMENT
           
static int STATE_INSIDE_DEBUG_ELEMENT
           
static int STATE_INSIDE_DEREF_LINK_ELEMENT
           
static int STATE_INSIDE_DN_ATTRIBUTE
           
static int STATE_INSIDE_DOC_ELEMENT
           
static int STATE_INSIDE_ERROR_ELEMENT
           
static int STATE_INSIDE_EXECUTE_ADD
           
static int STATE_INSIDE_EXECUTE_ELEMENT
           
static int STATE_INSIDE_EXECUTE_INCREMENT
           
static int STATE_INSIDE_EXECUTE_QUERY
           
static int STATE_INSIDE_EXECUTE_REPLACE
           
static int STATE_INSIDE_FILTER_ELEMENT
           
static int STATE_INSIDE_INITIAL_CONTEXT_ELEMENT
           
static int STATE_INSIDE_INITIALIZER_ELEMENT
           
static int STATE_INSIDE_PASSWORD_ELEMENT
           
static int STATE_INSIDE_PORT_ELEMENT
           
static int STATE_INSIDE_ROOT_DN_ELEMENT
           
static int STATE_INSIDE_ROW_ELEMENT
           
static int STATE_INSIDE_SAX_ERROR_ELEMENT
           
static int STATE_INSIDE_SCOPE_ELEMENT
           
static int STATE_INSIDE_SEARCHBASE_ELEMENT
           
static int STATE_INSIDE_SERVERURL_ELEMENT
           
static int STATE_INSIDE_SHOW_ATTRIBUTE_ELEMENT
           
static int STATE_INSIDE_TIME_LIMIT_ELEMENT
           
static int STATE_INSIDE_VERSION_ELEMENT
           
static int STATE_OUTSIDE
          The states we are allowed to be in
protected  XMLConsumer xml_consumer
          SAX producing state information
 
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
 
Fields inherited from interface org.apache.cocoon.transformation.Transformer
ROLE
 
Constructor Summary
LDAPTransformer()
           
 
Method Summary
 void characters(char[] ary, int start, int length)
          Receive notification of character data.
protected  void data(String data)
           
protected  void end(String name)
           
protected  void endAttributeElement()
           
protected  void endAuthenticationElement()
           
protected  void endCountLimitElement()
           
protected  void endDebugElement()
           
protected  void endDerefLinkElement()
           
protected  void endDnAttribute()
           
protected  void endDocElement()
           
 void endElement(String uri, String name, String raw)
          Receive notification of the end of an element.
protected  void endErrorElement()
           
protected  void endExecuteElement(int state, String name)
           
protected  void endFilterElement()
           
protected  void endInitialContextElement()
           
protected  void endInitializerElement()
           
protected  void endPasswordElement()
           
protected  void endPortElement()
           
protected  void endRootDnElement()
           
protected  void endRowElement()
           
protected  void endSaxError()
           
protected  void endScopeElement()
           
protected  void endSearchbaseElement()
           
protected  void endServerurlElement()
           
protected  void endShowAttributeElement()
           
protected  void endTimeLimitElement()
           
protected  void endVersionElement()
           
protected  void executeQuery(int index)
          This will be the meat of LDAPTransformer, where the query is run.
protected  org.apache.cocoon.transformation.LDAPTransformer.LDAPQuery getCurrentQuery()
           
protected  org.apache.cocoon.transformation.LDAPTransformer.LDAPQuery getQuery(int i)
           
protected static String getStringValue(Object object)
           
 Logger getTheLogger()
           
protected  void setDefaultProperty(Parameters parameters, String propertyName)
          My very own methods
 void setDocumentLocator(Locator locator)
          BEGIN SAX ContentHandler handlers
 void setup(SourceResolver resolver, Map objectModel, String source, Parameters parameters)
          SitemapComponent methods
protected  void start(String name, AttributesImpl attr)
           
protected  void startAttributeElement(Attributes attributes)
           
 void startElement(String uri, String name, String raw, Attributes attributes)
          Receive notification of the beginning of an element.
protected  void startExecuteElement()
           
protected  void startExecuteElement(int state, String name)
           
protected  void startFilterElement(Attributes attributes)
           
protected  void startInitialContextElement(Attributes attributes)
           
protected  void startParameterElement(int state, String name)
           
protected  void startQueryParameterElement(int state, String name)
           
protected  void startShowAttributeElement(Attributes attributes)
           
protected  void storeQuery(int nextState)
           
protected static void throwIllegalStateException(String message)
           
 
Methods inherited from class org.apache.cocoon.xml.AbstractXMLPipe
comment, endCDATA, endDocument, endDTD, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startPrefixMapping
 
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
recycle, setConsumer, setContentHandler, setLexicalHandler
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xml.sax.ContentHandler
endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, skippedEntity, startDocument, startPrefixMapping
 
Methods inherited from interface org.xml.sax.ext.LexicalHandler
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity
 
Methods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer
 

Field Detail

my_uri

public static final String my_uri
The LDAP namespace ("http://apache.org/cocoon/LDAP/1.0")

See Also:
Constant Field Values

my_name

public static final String my_name
See Also:
Constant Field Values

MAGIC_ATTRIBUTE_ELEMENT

public static final String MAGIC_ATTRIBUTE_ELEMENT
The LDAP namespace element names

See Also:
Constant Field Values

MAGIC_ATTRIBUTE_ELEMENT_ATTRIBUTE

public static final String MAGIC_ATTRIBUTE_ELEMENT_ATTRIBUTE
See Also:
Constant Field Values

MAGIC_ATTRIBUTE_ELEMENT_MODE_ATTRIBUTE

public static final String MAGIC_ATTRIBUTE_ELEMENT_MODE_ATTRIBUTE
See Also:
Constant Field Values

MAGIC_ATTRIBUTE_ELEMENT_MODE_ATTRIBUTE_DEFAULT

public static final String MAGIC_ATTRIBUTE_ELEMENT_MODE_ATTRIBUTE_DEFAULT
See Also:
Constant Field Values

MAGIC_ATTRIBUTE_ELEMENT_MODE_ATTRIBUTE_VALUE_A

public static final String MAGIC_ATTRIBUTE_ELEMENT_MODE_ATTRIBUTE_VALUE_A
See Also:
Constant Field Values

MAGIC_AUTHENTICATION_ELEMENT

public static final String MAGIC_AUTHENTICATION_ELEMENT
See Also:
Constant Field Values

MAGIC_COUNT_LIMIT_ELEMENT

public static final String MAGIC_COUNT_LIMIT_ELEMENT
See Also:
Constant Field Values

MAGIC_DEBUG_ELEMENT

public static final String MAGIC_DEBUG_ELEMENT
See Also:
Constant Field Values

MAGIC_DEREF_LINK_ELEMENT

public static final String MAGIC_DEREF_LINK_ELEMENT
See Also:
Constant Field Values

MAGIC_DOC_ELEMENT

public static final String MAGIC_DOC_ELEMENT
See Also:
Constant Field Values

MAGIC_ENCODING_ELEMENT

public static final String MAGIC_ENCODING_ELEMENT
See Also:
Constant Field Values

MAGIC_ERROR_ELEMENT

public static final String MAGIC_ERROR_ELEMENT
See Also:
Constant Field Values

MAGIC_EXECUTE_ADD

public static final String MAGIC_EXECUTE_ADD
See Also:
Constant Field Values

MAGIC_EXECUTE_INCREMENT

public static final String MAGIC_EXECUTE_INCREMENT
See Also:
Constant Field Values

MAGIC_EXECUTE_QUERY

public static final String MAGIC_EXECUTE_QUERY
See Also:
Constant Field Values

MAGIC_EXECUTE_REPLACE

public static final String MAGIC_EXECUTE_REPLACE
See Also:
Constant Field Values

MAGIC_FILTER_ELEMENT

public static final String MAGIC_FILTER_ELEMENT
See Also:
Constant Field Values

MAGIC_INITIALIZER_ELEMENT

public static final String MAGIC_INITIALIZER_ELEMENT
See Also:
Constant Field Values

MAGIC_INITIAL_CONTEXT_ELEMENT

public static final String MAGIC_INITIAL_CONTEXT_ELEMENT
See Also:
Constant Field Values

MAGIC_INITIAL_CONTEXT_NAME_ATTRIBUTE

public static final String MAGIC_INITIAL_CONTEXT_NAME_ATTRIBUTE
See Also:
Constant Field Values

MAGIC_INITIAL_CONTEXT_VALUE_ATTRIBUTE

public static final String MAGIC_INITIAL_CONTEXT_VALUE_ATTRIBUTE
See Also:
Constant Field Values

MAGIC_PASSWORD_ELEMENT

public static final String MAGIC_PASSWORD_ELEMENT
See Also:
Constant Field Values

MAGIC_PORT_ELEMENT

public static final String MAGIC_PORT_ELEMENT
See Also:
Constant Field Values

MAGIC_ROOT_DN_ELEMENT

public static final String MAGIC_ROOT_DN_ELEMENT
See Also:
Constant Field Values

MAGIC_ROW_ELEMENT

public static final String MAGIC_ROW_ELEMENT
See Also:
Constant Field Values

MAGIC_DN_ATTRIBUTE

public static final String MAGIC_DN_ATTRIBUTE
See Also:
Constant Field Values

MAGIC_SAX_ERROR

public static final String MAGIC_SAX_ERROR
See Also:
Constant Field Values

MAGIC_SCOPE_ELEMENT

public static final String MAGIC_SCOPE_ELEMENT
See Also:
Constant Field Values

MAGIC_SEARCHBASE_ELEMENT

public static final String MAGIC_SEARCHBASE_ELEMENT
See Also:
Constant Field Values

MAGIC_SERVERURL_ELEMENT

public static final String MAGIC_SERVERURL_ELEMENT
See Also:
Constant Field Values

MAGIC_SHOW_ATTRIBUTE_ELEMENT

public static final String MAGIC_SHOW_ATTRIBUTE_ELEMENT
See Also:
Constant Field Values

MAGIC_TIME_LIMIT_ELEMENT

public static final String MAGIC_TIME_LIMIT_ELEMENT
See Also:
Constant Field Values

MAGIC_VERSION_ELEMENT

public static final String MAGIC_VERSION_ELEMENT
See Also:
Constant Field Values

STATE_OUTSIDE

public static final int STATE_OUTSIDE
The states we are allowed to be in

See Also:
Constant Field Values

STATE_INSIDE_EXECUTE_QUERY

public static final int STATE_INSIDE_EXECUTE_QUERY
See Also:
Constant Field Values

STATE_INSIDE_EXECUTE_INCREMENT

public static final int STATE_INSIDE_EXECUTE_INCREMENT
See Also:
Constant Field Values

STATE_INSIDE_EXECUTE_ELEMENT

public static final int STATE_INSIDE_EXECUTE_ELEMENT
See Also:
Constant Field Values

STATE_INSIDE_INITIALIZER_ELEMENT

public static final int STATE_INSIDE_INITIALIZER_ELEMENT
See Also:
Constant Field Values

STATE_INSIDE_SERVERURL_ELEMENT

public static final int STATE_INSIDE_SERVERURL_ELEMENT
See Also:
Constant Field Values

STATE_INSIDE_PORT_ELEMENT

public static final int STATE_INSIDE_PORT_ELEMENT
See Also:
Constant Field Values

STATE_INSIDE_SCOPE_ELEMENT

public static final int STATE_INSIDE_SCOPE_ELEMENT
See Also:
Constant Field Values

STATE_INSIDE_VERSION_ELEMENT

public static final int STATE_INSIDE_VERSION_ELEMENT
See Also:
Constant Field Values

STATE_INSIDE_AUTHENTICATION_ELEMENT

public static final int STATE_INSIDE_AUTHENTICATION_ELEMENT
See Also:
Constant Field Values

STATE_INSIDE_ROOT_DN_ELEMENT

public static final int STATE_INSIDE_ROOT_DN_ELEMENT
See Also:
Constant Field Values

STATE_INSIDE_PASSWORD_ELEMENT

public static final int STATE_INSIDE_PASSWORD_ELEMENT
See Also:
Constant Field Values

STATE_INSIDE_SEARCHBASE_ELEMENT

public static final int STATE_INSIDE_SEARCHBASE_ELEMENT
See Also:
Constant Field Values

STATE_INSIDE_DOC_ELEMENT

public static final int STATE_INSIDE_DOC_ELEMENT
See Also:
Constant Field Values

STATE_INSIDE_ROW_ELEMENT

public static final int STATE_INSIDE_ROW_ELEMENT
See Also:
Constant Field Values

STATE_INSIDE_ATTRIBUTE_ELEMENT

public static final int STATE_INSIDE_ATTRIBUTE_ELEMENT
See Also:
Constant Field Values

STATE_INSIDE_SHOW_ATTRIBUTE_ELEMENT

public static final int STATE_INSIDE_SHOW_ATTRIBUTE_ELEMENT
See Also:
Constant Field Values

STATE_INSIDE_ERROR_ELEMENT

public static final int STATE_INSIDE_ERROR_ELEMENT
See Also:
Constant Field Values

STATE_INSIDE_FILTER_ELEMENT

public static final int STATE_INSIDE_FILTER_ELEMENT
See Also:
Constant Field Values

STATE_INSIDE_DEREF_LINK_ELEMENT

public static final int STATE_INSIDE_DEREF_LINK_ELEMENT
See Also:
Constant Field Values

STATE_INSIDE_COUNT_LIMIT_ELEMENT

public static final int STATE_INSIDE_COUNT_LIMIT_ELEMENT
See Also:
Constant Field Values

STATE_INSIDE_TIME_LIMIT_ELEMENT

public static final int STATE_INSIDE_TIME_LIMIT_ELEMENT
See Also:
Constant Field Values

STATE_INSIDE_DEBUG_ELEMENT

public static final int STATE_INSIDE_DEBUG_ELEMENT
See Also:
Constant Field Values

STATE_INSIDE_SAX_ERROR_ELEMENT

public static final int STATE_INSIDE_SAX_ERROR_ELEMENT
See Also:
Constant Field Values

STATE_INSIDE_EXECUTE_REPLACE

public static final int STATE_INSIDE_EXECUTE_REPLACE
See Also:
Constant Field Values

STATE_INSIDE_EXECUTE_ADD

public static final int STATE_INSIDE_EXECUTE_ADD
See Also:
Constant Field Values

STATE_INSIDE_DN_ATTRIBUTE

public static final int STATE_INSIDE_DN_ATTRIBUTE
See Also:
Constant Field Values

STATE_INSIDE_INITIAL_CONTEXT_ELEMENT

public static final int STATE_INSIDE_INITIAL_CONTEXT_ELEMENT
See Also:
Constant Field Values

default_properties

protected HashMap default_properties
Default parameters that might apply to all queries


current_name

protected String current_name
The name of the value element we're currently receiving


current_state

protected int current_state
The current state of the event receiving FSM


current_value

protected StringBuffer current_value
The value of the value element we're currently receiving


queries

protected Vector queries
The list of queries that we're currently working on


current_query_index

protected int current_query_index
The offset of the current query in the queries list


xml_consumer

protected XMLConsumer xml_consumer
SAX producing state information


lexical_handler

protected LexicalHandler lexical_handler
Constructor Detail

LDAPTransformer

public LDAPTransformer()
Method Detail

setup

public void setup(SourceResolver resolver,
                  Map objectModel,
                  String source,
                  Parameters parameters)
           throws ProcessingException,
                  SAXException,
                  IOException
SitemapComponent methods

Throws:
ProcessingException
SAXException
IOException

setDefaultProperty

protected void setDefaultProperty(Parameters parameters,
                                  String propertyName)
My very own methods


storeQuery

protected void storeQuery(int nextState)

executeQuery

protected void executeQuery(int index)
                     throws SAXException
This will be the meat of LDAPTransformer, where the query is run.

Throws:
SAXException

throwIllegalStateException

protected static void throwIllegalStateException(String message)

startExecuteElement

protected void startExecuteElement()

startExecuteElement

protected void startExecuteElement(int state,
                                   String name)

endExecuteElement

protected void endExecuteElement(int state,
                                 String name)
                          throws SAXException
Throws:
SAXException

startQueryParameterElement

protected void startQueryParameterElement(int state,
                                          String name)

startParameterElement

protected void startParameterElement(int state,
                                     String name)

endInitializerElement

protected void endInitializerElement()

endScopeElement

protected void endScopeElement()

endAuthenticationElement

protected void endAuthenticationElement()

endServerurlElement

protected void endServerurlElement()

endPortElement

protected void endPortElement()

startShowAttributeElement

protected void startShowAttributeElement(Attributes attributes)

endShowAttributeElement

protected void endShowAttributeElement()

endSearchbaseElement

protected void endSearchbaseElement()

endDocElement

protected void endDocElement()

endRowElement

protected void endRowElement()

endDnAttribute

protected void endDnAttribute()

endErrorElement

protected void endErrorElement()

endSaxError

protected void endSaxError()

endRootDnElement

protected void endRootDnElement()

endPasswordElement

protected void endPasswordElement()

startAttributeElement

protected void startAttributeElement(Attributes attributes)

endAttributeElement

protected void endAttributeElement()

startInitialContextElement

protected void startInitialContextElement(Attributes attributes)

endInitialContextElement

protected void endInitialContextElement()

endVersionElement

protected void endVersionElement()

startFilterElement

protected void startFilterElement(Attributes attributes)

endFilterElement

protected void endFilterElement()

endDerefLinkElement

protected void endDerefLinkElement()

endCountLimitElement

protected void endCountLimitElement()

endTimeLimitElement

protected void endTimeLimitElement()

endDebugElement

protected void endDebugElement()

getCurrentQuery

protected org.apache.cocoon.transformation.LDAPTransformer.LDAPQuery getCurrentQuery()

getQuery

protected org.apache.cocoon.transformation.LDAPTransformer.LDAPQuery getQuery(int i)

setDocumentLocator

public void setDocumentLocator(Locator locator)
BEGIN SAX ContentHandler handlers

Specified by:
setDocumentLocator in interface ContentHandler
Overrides:
setDocumentLocator in class AbstractXMLPipe
Parameters:
locator - An object that can return the location of any SAX document event.

startElement

public void startElement(String uri,
                         String name,
                         String raw,
                         Attributes attributes)
                  throws SAXException
Description copied from class: AbstractXMLPipe
Receive notification of the beginning of an element.

Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class AbstractXMLPipe
Parameters:
uri - The Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed.
name - The local name (without prefix), or the empty string if Namespace processing is not being performed.
raw - The raw XML 1.0 name (with prefix), or the empty string if raw names are not available.
attributes - The attributes attached to the element. If there are no attributes, it shall be an empty Attributes object.
Throws:
SAXException

endElement

public void endElement(String uri,
                       String name,
                       String raw)
                throws SAXException
Description copied from class: AbstractXMLPipe
Receive notification of the end of an element.

Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class AbstractXMLPipe
Parameters:
uri - The Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed.
name - The local name (without prefix), or the empty string if Namespace processing is not being performed.
raw - The raw XML 1.0 name (with prefix), or the empty string if raw names are not available.
Throws:
SAXException

characters

public void characters(char[] ary,
                       int start,
                       int length)
                throws SAXException
Description copied from class: AbstractXMLPipe
Receive notification of character data.

Specified by:
characters in interface ContentHandler
Overrides:
characters in class AbstractXMLPipe
Parameters:
ary - The characters from the XML document.
start - The start position in the array.
length - The number of characters to read from the array.
Throws:
SAXException

start

protected void start(String name,
                     AttributesImpl attr)
              throws SAXException
Throws:
SAXException

end

protected void end(String name)
            throws SAXException
Throws:
SAXException

data

protected void data(String data)
             throws SAXException
Throws:
SAXException

getStringValue

protected static String getStringValue(Object object)

getTheLogger

public final Logger getTheLogger()


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.