public class WebXmlContextParameterParser extends org.xml.sax.helpers.DefaultHandler
| Constructor and Description |
|---|
WebXmlContextParameterParser() |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length) |
protected boolean |
elements(String... name)
Checks whether the element stack currently contains exactly the elements supplied by the caller.
|
void |
endElement(String uri,
String localName,
String qName) |
String |
getContextParameter(String name)
Returns the value of the supplied context parameter parsed from the web.xml file.
|
void |
parse(InputStream stream)
Parses the supplied web.xml
InputStream. |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningpublic final void parse(InputStream stream) throws IOException
InputStream.stream - The stream to parseIOException - for any errors during the parsing processpublic String getContextParameter(String name)
null if the parser
found no value for this parameter.name - The name of the context parameternullpublic void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionprotected boolean elements(String... name)
name - The names of the parent elementstrue if the parent element stack contains exactly these elementsCopyright © 2009-2013 Seam Framework. All Rights Reserved.