|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
se.kmr.scam.client.http.util.PreferenceConfigParser
Application preferences configuration parser. Example of preference configuration XML contents:
<preferences class="se.foo.fie.fum.PreferenceBean" beanName="applPrefBean">
<!-- Standard preference parameters -->
<init-param name="locale" value="sv"/>
<init-param name="resultPageLength" value="10"/>
<init-param name="progSortOrder" value="ascending"/>
<!-- Application specific preference parameters -->
<init-param name="foo" value="fooValue"/>
</preferences>
Constructor Summary | |
PreferenceConfigParser()
|
Method Summary | |
String |
getPreferencesBeanName()
Gets current preferences bean name for application scope attribute. |
String |
getPreferencesClass()
Gets current preferences object class. |
Hashtable |
getPreferencesMap()
Gets current preferences map. |
void |
parse(InputStream is)
Parse the given input stream. |
void |
parse(String filename)
Parses the given XML-file. |
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
Receives notifiacation of the start of an element. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PreferenceConfigParser()
Method Detail |
public void parse(String filename)
filename
- public void parse(InputStream is)
is
- Parse this stream.public String getPreferencesClass()
public String getPreferencesBeanName()
public Hashtable getPreferencesMap()
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
localName
- - The local name (without prefix), or the empty string if Namespace processing is not being performed.qName
- - The qualified name (with prefix), or the empty string if qualified names are not available.atts
- - The attributes attached to the element. If there are no attributes, it shall be an empty Attributes object.
SAXException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |