|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
fr.dyade.aaa.agent.conf.A3CMLSaxWrapper
public class A3CMLSaxWrapper
XML SAX Wrapper for A3 configuration file.
Field Summary | |
---|---|
protected A3CMLConfig |
a3cmlConfig
|
(package private) A3CMLCluster |
cluster
Working attribute used during cluster' definition between start and end element. |
(package private) java.lang.String |
conf
Working attribute used during configuration's |
(package private) java.lang.String |
configName
Name of configuration to get from the file. |
(package private) A3CMLDomain |
domain
Working attribute used during domain's definition between start and end element. |
(package private) java.lang.String |
jvmArgs
Working attribute used during jvmArgs' definition between start and end element. |
(package private) A3CMLNat |
nat
Working attribute used during nat' definition between start and end element. |
(package private) A3CMLNetwork |
network
Working attribute used during network's definition between start and end element. |
(package private) A3CMLProperty |
property
Working attribute used during service's definition between start and end element. |
(package private) A3CMLServer |
server
Working attribute used during server's definition between start and end element. |
(package private) A3CMLService |
service
Working attribute used during service's definition between start and end element. |
Constructor Summary | |
---|---|
A3CMLSaxWrapper()
|
Method Summary | |
---|---|
void |
endDocument()
Finalizes parsing of a document. |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String rawName)
Receive notification of the end of an element. |
void |
error(org.xml.sax.SAXParseException e)
Handles notification of a recoverable parser error. |
void |
fatalError(org.xml.sax.SAXParseException e)
Handles notification of a non-recoverable parser error. |
A3CMLConfig |
parse(java.io.Reader cfgReader,
java.lang.String cfgName)
Parses the xml file named cfgFileName and calls handler
methods. |
void |
startDocument()
Initializes parsing of a document. |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String rawName,
org.xml.sax.Attributes atts)
Receive notification of the start of an element. |
void |
warning(org.xml.sax.SAXParseException e)
Handles notification of a parser warning. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
characters, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected A3CMLConfig a3cmlConfig
java.lang.String configName
java.lang.String conf
A3CMLDomain domain
A3CMLServer server
A3CMLNetwork network
A3CMLService service
A3CMLProperty property
java.lang.String jvmArgs
A3CMLNat nat
A3CMLCluster cluster
Constructor Detail |
---|
public A3CMLSaxWrapper()
Method Detail |
---|
public A3CMLConfig parse(java.io.Reader cfgReader, java.lang.String cfgName) throws java.lang.Exception
cfgFileName
and calls handler
methods. Calls only methode startDocument()
,
startElement
, endElement
and
endDocument
.
parse
in interface A3CMLWrapper
cfgFileName
- the name of the xml fileconfigName
- the name of the configurationserverId
- the id of the local server
java.lang.Exception
- unspecialized errorpublic void fatalError(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
fatalError
in interface org.xml.sax.ErrorHandler
fatalError
in class org.xml.sax.helpers.DefaultHandler
e
- The warning information encoded as an exception.
org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.public void error(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
error
in interface org.xml.sax.ErrorHandler
error
in class org.xml.sax.helpers.DefaultHandler
e
- The warning information encoded as an exception.
org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.public void warning(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
warning
in interface org.xml.sax.ErrorHandler
warning
in class org.xml.sax.helpers.DefaultHandler
e
- The warning information encoded as an exception.
org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.public void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.ContentHandler
startDocument
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
- unspecialized errorpublic void startElement(java.lang.String uri, java.lang.String localName, java.lang.String rawName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
uri
- The Namespace URIlocalName
- The local namerawName
- The qualified nameatts
- The attributes attached to the element.
org.xml.sax.SAXException
- unspecialized errorpublic void endElement(java.lang.String uri, java.lang.String localName, java.lang.String rawName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
uri
- The Namespace URIlocalName
- The local namerawName
- The qualified nameatts
- The attributes attached to the element.
org.xml.sax.SAXException
- unspecialized errorpublic void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.ContentHandler
endDocument
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
- unspecialized error
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |