Class LoginsFileParser
java.lang.Object
com.caplin.motif.fx.ret.common.extension.usermanager.LoginsFileParser
- All Implemented Interfaces:
ContentHandler
Parses a logins XML file and stores all users in a cache.
- (shortlife) Will run during initialisation per adapter.
- (fatal) If it fails, the adapter should probably stop.
- (nonconcurrent) Concurrent access is not expected.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] chars, int i, int i1) void
void
endElement
(String uri, String localName, String qName) void
void
ignorableWhitespace
(char[] chars, int i, int i1) void
Loads the XML file at the given path.void
void
processingInstruction
(String s, String s1) void
setDocumentLocator
(Locator locator) void
void
void
startElement
(String uri, String localName, String qName, Attributes attributes) void
startPrefixMapping
(String s, String s1) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
LoginsFileParser
-
-
Method Details
-
load
Loads the XML file at the given path.- Throws:
ParserConfigurationException
- if a parser cannot be createdSAXException
- if any SAX errors occur during processingIOException
- if the XML cannot be parsed
-
startElement
- Specified by:
startElement
in interfaceContentHandler
-
endElement
- Specified by:
endElement
in interfaceContentHandler
-
startDocument
public void startDocument()- Specified by:
startDocument
in interfaceContentHandler
-
endDocument
public void endDocument()- Specified by:
endDocument
in interfaceContentHandler
-
log
-
setDocumentLocator
- Specified by:
setDocumentLocator
in interfaceContentHandler
-
startPrefixMapping
- Specified by:
startPrefixMapping
in interfaceContentHandler
-
endPrefixMapping
- Specified by:
endPrefixMapping
in interfaceContentHandler
-
characters
public void characters(char[] chars, int i, int i1) - Specified by:
characters
in interfaceContentHandler
-
ignorableWhitespace
public void ignorableWhitespace(char[] chars, int i, int i1) - Specified by:
ignorableWhitespace
in interfaceContentHandler
-
processingInstruction
- Specified by:
processingInstruction
in interfaceContentHandler
-
skippedEntity
- Specified by:
skippedEntity
in interfaceContentHandler
-