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 TypeMethodDescriptionvoidcharacters(char[] chars, int i, int i1) voidvoidendElement(String uri, String localName, String qName) voidvoidignorableWhitespace(char[] chars, int i, int i1) voidLoads the XML file at the given path.voidvoidprocessingInstruction(String s, String s1) voidsetDocumentLocator(Locator locator) voidvoidvoidstartElement(String uri, String localName, String qName, Attributes attributes) voidstartPrefixMapping(String s, String s1) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
startElementin interfaceContentHandler
-
endElement
- Specified by:
endElementin interfaceContentHandler
-
startDocument
public void startDocument()- Specified by:
startDocumentin interfaceContentHandler
-
endDocument
public void endDocument()- Specified by:
endDocumentin interfaceContentHandler
-
log
-
setDocumentLocator
- Specified by:
setDocumentLocatorin interfaceContentHandler
-
startPrefixMapping
- Specified by:
startPrefixMappingin interfaceContentHandler
-
endPrefixMapping
- Specified by:
endPrefixMappingin interfaceContentHandler
-
characters
public void characters(char[] chars, int i, int i1) - Specified by:
charactersin interfaceContentHandler
-
ignorableWhitespace
public void ignorableWhitespace(char[] chars, int i, int i1) - Specified by:
ignorableWhitespacein interfaceContentHandler
-
processingInstruction
- Specified by:
processingInstructionin interfaceContentHandler
-
skippedEntity
- Specified by:
skippedEntityin interfaceContentHandler
-