public class H2AuthConfigXml extends DefaultHandler
| 构造器和说明 |
|---|
H2AuthConfigXml() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
endElement(String uri,
String localName,
String qName) |
H2AuthConfig |
getResult()
Returns parsed authenticator configuration.
|
static H2AuthConfig |
parseFrom(InputStream inputStream)
Parse the xml.
|
static H2AuthConfig |
parseFrom(URL url)
Parse the xml.
|
InputSource |
resolveEntity(String publicId,
String systemId) |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningpublic void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement 在接口中 ContentHandlerstartElement 在类中 DefaultHandlerSAXExceptionpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement 在接口中 ContentHandlerendElement 在类中 DefaultHandlerSAXExceptionpublic InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException
resolveEntity 在接口中 EntityResolverresolveEntity 在类中 DefaultHandlerIOExceptionSAXExceptionpublic H2AuthConfig getResult()
public static H2AuthConfig parseFrom(URL url) throws SAXException, IOException, ParserConfigurationException
url - the source of the xml configuration.ParserConfigurationException - if a parser cannot be created.SAXException - for SAX errors.IOException - If an I/O error occurspublic static H2AuthConfig parseFrom(InputStream inputStream) throws SAXException, IOException, ParserConfigurationException
inputStream - the source of the xml configuration.ParserConfigurationException - if a parser cannot be created.SAXException - for SAX errors.IOException - If an I/O error occursCopyright © 2022. All rights reserved.