public class

ServersParser

extends AbstractHandler
java.lang.Object
   ↳ org.xml.sax.helpers.DefaultHandler
     ↳ com.microstrategy.utils.xml.AbstractHandler
       ↳ com.microstrategy.web.ipa.ServersParser

Class Overview

XML handler for parsing servers in XML format

Summary

Nested Classes
class ServersParser.WebServerCredentials  
Constants
String NODE_ATTR_ID
String NODE_ATTR_NAME
String NODE_ATTR_PASSWORD
String NODE_ATTR_PORT
String NODE_ATTR_TN
String NODE_ATTR_TYPE
String NODE_ATTR_USERNAME
String NODE_NAME
[Expand]
Inherited Fields
From class com.microstrategy.utils.xml.AbstractHandler
Public Constructors
ServersParser(String ixmlServers)
Public Methods
Map<String, ServersParser.WebServerCredentials> getIdToServerCredentialsMap()
Map<String, IPAServer> getIdToServerMap()
Protected Methods
void doEndElement(String uri, String local, String qName)
Override this method insted of endElement to process end element event.
void doStartElement(String uri, String local, String qName, AttributesXt attrs)
[Expand]
Inherited Methods
From class com.microstrategy.utils.xml.AbstractHandler
From class org.xml.sax.helpers.DefaultHandler
From class java.lang.Object
From interface org.xml.sax.ContentHandler
From interface org.xml.sax.DTDHandler
From interface org.xml.sax.EntityResolver
From interface org.xml.sax.ErrorHandler

Constants

public static final String NODE_ATTR_ID

Constant Value: "id"

public static final String NODE_ATTR_NAME

Constant Value: "name"

public static final String NODE_ATTR_PASSWORD

Constant Value: "password"

public static final String NODE_ATTR_PORT

Constant Value: "port"

public static final String NODE_ATTR_TN

Constant Value: "tn"

public static final String NODE_ATTR_TYPE

Constant Value: "type"

public static final String NODE_ATTR_USERNAME

Constant Value: "username"

public static final String NODE_NAME

Constant Value: "server"

Public Constructors

public ServersParser (String ixmlServers)

Throws
WebException

Public Methods

public Map<String, ServersParser.WebServerCredentials> getIdToServerCredentialsMap ()

public Map<String, IPAServer> getIdToServerMap ()

Protected Methods

protected void doEndElement (String uri, String local, String qName)

Override this method insted of endElement to process end element event. This way you will not have problems with depth counter while subclassing your event handlers.

Throws
SAXException

protected void doStartElement (String uri, String local, String qName, AttributesXt attrs)

Throws
SAXException
NodeDoesNotExistException