| java.lang.Object org.xml.sax.helpers.DefaultHandler org.jasig.portal.car.ProcessIfTagHandler
ProcessIfTagHandler | public class ProcessIfTagHandler extends DefaultHandler (Code) | | Handles a "processIf" tag looking for the following attributes and
blocking SAX events from reaching nested tags if the specified
requirements are not met.
fname = the functional name whose version is to be checked
version = value is one of lessThan, greaterThan, lessThanOrEqual,
greaterThanOrEqual, equalTo, or notEqualTo.
major = the revision level major part
minor = the revision level minor part
micro = the revision level micro part
setMajor = optional, the new revision level major part
setMinor = optional, the new revision level minor part
setMicro = optional, the new revision level micro part
The contents of the processIf tag are only processed if the version
of the specified fname matches the requirements as specified in the
version, major, minor, and micro attributes. If the setMajor,
setMinor, and setMicro attributes are specified then and additional
test is performed to determine if processing will occur. This test
involves attempting to set the version of the fname to that
specified. If unable to then processing will be skipped for this
block. This is done to allow the same CAR to be deployed on all
servers in a multi-server deployment but only have on of the
servers perform the processing of the block and affect the
database.
There is no limit on the number of processIf blocks that can occur
in a deployment descriptor. All other nested tags are supported
within the processIf tag. The processIf tag can not be nested
inside of itself.
author: Mark Boyd mark.boyd@engineer.com version: $Revision: 36690 $ |
characters | public void characters(char[] ch, int start, int length) throws SAXException(Code) | | |
setAttributes | void setAttributes(Attributes atts)(Code) | | Passes the attributes of the processIf tag that is currently
being parsed to this handler allowing it to determine if it
should allow SAX events to be passed to the contained tag
handlers or not.
Parameters: atts - |
Methods inherited from org.xml.sax.helpers.DefaultHandler | public void characters(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void endDocument() throws SAXException(Code)(Java Doc) public void endElement(String uri, String localName, String qName) throws SAXException(Code)(Java Doc) public void endPrefixMapping(String prefix) throws SAXException(Code)(Java Doc) public void error(SAXParseException e) throws SAXException(Code)(Java Doc) public void fatalError(SAXParseException e) throws SAXException(Code)(Java Doc) public void ignorableWhitespace(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void notationDecl(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc) public void processingInstruction(String target, String data) throws SAXException(Code)(Java Doc) public InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException(Code)(Java Doc) public void setDocumentLocator(Locator locator)(Code)(Java Doc) public void skippedEntity(String name) throws SAXException(Code)(Java Doc) public void startDocument() throws SAXException(Code)(Java Doc) public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException(Code)(Java Doc) public void startPrefixMapping(String prefix, String uri) throws SAXException(Code)(Java Doc) public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException(Code)(Java Doc) public void warning(SAXParseException e) throws SAXException(Code)(Java Doc)
|
|
|