* then parses the file.
* @exception Frame2Exception
*/
public void execute() throws Frame2Exception {
try {
Frame2SAXReader reader = new Frame2SAXReader();
reader.setElementHandler(FORWARD, this.forwardTagHandler);
reader.setElementHandler(EVENT, this.eventTagHandler);
reader.setElementHandler(SCHEMA_MAPPING, this.schemaMappingTagHandler);
reader.setElementHandler(EVENT_NAME, this.eventNameTagHandler);
reader.setElementHandler(EVENT_MAPPING, this.eventMappingTagHandler);
reader.setElementHandler(HANDLER, this.handlerTagHandler);
reader.setElementHandler(VIEW, this.viewTagHandler);
reader.setElementHandler(SECURITY, this.securityTagHandler);
reader.setElementHandler(ROLE, this.roleTagHandler);
reader.setElementHandler(GLOBAL_FORWARDS, this.globalForwardTagHandler);
reader.setElementHandler(EVENT_HANDLER, this.eventHandlerTagHandler);
reader.setElementHandler(INPUT_PARAM, this.inputParamTagHandler);
reader.setElementHandler(EXCEPTION, this.exceptionTagHandler);
reader.setElementHandler(PLUGIN, this.pluginTagHandler);
reader.setElementHandler(SOAP_REQ_PROC, this.soapReqProcHandler);
reader.setElementHandler(HTTP_REQ_PROC, this.httpReqProcHandler);
// Now set the Elements which do not have handlers
reader.setElement(FRAME2_CONFIG);
reader.setElement(EVENTS);
reader.setElement(SCHEMA_MAPPINGS);
reader.setElement(EVENT_MAPPINGS);
reader.setElement(EVENT_HANDLERS);
reader.setElement(EXCEPTIONS);
reader.setElement(PLUGINS);
reader.setElement(REQ_PROC);
if (this.is == null) {
throw new ParserException("Error finding config file "); //$NON-NLS-1$
}
reader.parse(this.is);
} catch (ParserException e) {
throw new Frame2Exception("Unable to load configuration", e); //$NON-NLS-1$
}
}