congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
DOMReader
Code IndexAdd Tabnine to your IDE (free)

How to use
DOMReader
in
com.novell.ldap.util

Best Java code snippets using com.novell.ldap.util.DOMReader (Showing top 3 results out of 315)

origin: com.novell.ldap/jldap

/**
 * @deprecated use #DOMReader(Element)
 * Creates a reader that reads a DOM document and translates it into
 * LDAPMessages.
 * <p>The first batchRequest or batchResponse is located and all nodes
 * within it will be read and translated into LDAPMessages</p>
 *
 * @param dsmlDoc  Document with a DSML batchRequest or batchResponse
 * @throws LDAPLocalException Occurs when no batchRequest or batchResponse
 * is found, or the document is invalid DSML.
 */
public DOMReader(Document dsmlDoc) throws LDAPLocalException {
  this.root = (Element)
      dsmlDoc.getElementsByTagName("batchRequest").item(0);
  if (this.root == null){
    this.root = (Element)
        dsmlDoc.getElementsByTagNameNS("*", "batchResponse").item(0);
  }
  if (this.root == null){
    throw new IllegalArgumentException(
       "DOMReader: could not locate a batchRequest or batchResponse");
  }
  handler = new DSMLHandler();
  processNodes(root.getParentNode());
}
origin: com.novell.ldap/jldap

/**
 * Creates a reader that read a DOM element and translate it into
 * LDAPMessages.
 * <p>Requests or responses must be inside of the batchRequest or
 * batchResponse specified</p>
 * @param root  Element with a name of batchRequest or batchResponse.
 * @throws LDAPLocalException Occurs when no batchRequest or batchResponse
 * is found, or the Element is invalid DSML.
 */
public DOMReader(Element root) throws LDAPLocalException {
  this.root = root;
  String name = root.getLocalName();
  if (name == null){
    name = root.getNodeName();
  }
  if (!name.equals("batchRequest") &&
    !name.equals("batchResponse") )
  {
    throw new IllegalArgumentException (
        "DOMReader: specified root element " +
        "must be a batchRequest or a batchResponse");
  }
  handler = new DSMLHandler();
  processNodes(root.getParentNode());
  return;
}
origin: com.novell.ldap/jldap

processNodes(curChild);
com.novell.ldap.utilDOMReader

Javadoc

Reads pre-parsed DSML as LDAPMessages.

Some applications have access to DSML(Directory Services Markup Language) pre-parsed into DOM(Document Object Model) objects. This utility class will read a DOM structure and translate it into LDAPMessages. If DSML comes from a stream or file then DSMLReader may also be used.

Most used methods

  • processNodes
    Recursively processes DOM nodes by pulling out the tag name, attributes and text values and calling

Popular in Java

  • Finding current android device location
  • requestLocationUpdates (LocationManager)
  • setRequestProperty (URLConnection)
  • getResourceAsStream (ClassLoader)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now