public class UriMappings
extends java.lang.Object
implements org.xml.sax.ContentHandler
| Constructor and Description |
|---|
UriMappings(javax.servlet.ServletContext servletContext,
java.lang.String xmlParserClass)
Constructor for the UrlMappings object
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length)
(SAX) Element data (characters between tags, not used here)
|
void |
endDocument()
(SAX) Invoked at the end of parsing.
|
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
(SAX) Invoked upon closing tag of an XML element (not used here)
|
void |
endPrefixMapping(java.lang.String prefix)
(SAX) Required by SAX, but not used here
|
java.lang.String |
getForwardPage(javax.servlet.http.HttpServletRequest request)
Gets the forwardPage attribute of the UrlMappings object
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
(SAX) Reports any whitespace that is ignored because it falls outside of
the DTD or schema definition--usefull for re-generating the file with
indents intact.
|
void |
loadMappings(java.lang.String configFile)
Load URL mappings from the supplied configuration file
|
void |
processingInstruction(java.lang.String target,
java.lang.String data)
(SAX) Required by SAX, but not used here
|
static void |
setDebug(boolean db)
Sets the debug attribute of the DDSServlet object
|
void |
setDocumentLocator(org.xml.sax.Locator locator)
(SAX) Sets the SAX locator, which indicates the current position of the
parser within the document (line number, column number).
|
void |
skippedEntity(java.lang.String name)
(SAX) Required by SAX, but not used here
|
void |
startDocument()
(SAX) Invoked at the start of any document parse
|
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
(SAX) Invoked upon opening tag of an XML element
|
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
(SAX) Required by SAX, but not used here
|
public UriMappings(javax.servlet.ServletContext servletContext,
java.lang.String xmlParserClass)
xmlParserClass - servletContext - public void loadMappings(java.lang.String configFile)
configFile - public java.lang.String getForwardPage(javax.servlet.http.HttpServletRequest request)
request - public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator in interface org.xml.sax.ContentHandlerlocator - The new saxLocator valuepublic void startDocument()
throws org.xml.sax.SAXException
startDocument in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXExceptionpublic void endDocument()
throws org.xml.sax.SAXException
endDocument in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXExceptionpublic void startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandlernamespaceURI - localName - qName - atts - org.xml.sax.SAXExceptionpublic void endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
endElement in interface org.xml.sax.ContentHandlernamespaceURI - XML namespacelocalName - local tag nameqName - fully qualified tag nameorg.xml.sax.SAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
characters in interface org.xml.sax.ContentHandlerch - start - length - org.xml.sax.SAXExceptionpublic void ignorableWhitespace(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
ignorableWhitespace in interface org.xml.sax.ContentHandlerch - start - length - org.xml.sax.SAXExceptionpublic void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
throws org.xml.sax.SAXException
startPrefixMapping in interface org.xml.sax.ContentHandlerprefix - uri - org.xml.sax.SAXExceptionpublic void endPrefixMapping(java.lang.String prefix)
throws org.xml.sax.SAXException
endPrefixMapping in interface org.xml.sax.ContentHandlerprefix - org.xml.sax.SAXExceptionpublic void processingInstruction(java.lang.String target,
java.lang.String data)
throws org.xml.sax.SAXException
processingInstruction in interface org.xml.sax.ContentHandlertarget - data - org.xml.sax.SAXExceptionpublic void skippedEntity(java.lang.String name)
throws org.xml.sax.SAXException
skippedEntity in interface org.xml.sax.ContentHandlername - org.xml.sax.SAXExceptionpublic static final void setDebug(boolean db)
db - The new debug value