Examples of inErrorRecoveryMode()


Examples of com.volantis.xml.pipeline.sax.XMLPipelineContext.inErrorRecoveryMode()

    public void stopProcess() throws SAXException {
        // Each request has a single operation and a single message. Both
        // of these should have been set as properties in the pipeline context
        // by the time we get here.
        XMLPipelineContext context = getPipelineContext();
        if (!context.inErrorRecoveryMode()) {
            Locator locator = context.getCurrentLocator();

            Operation operation =
                    (Operation)context.getProperty(Operation.class);
            if (operation == null) {
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.XMLPipelineContext.inErrorRecoveryMode()

    // Javadoc inherited.
    public void doAction(DynamicProcess dynamicProcess)
            throws SAXException {

        XMLPipelineContext context = dynamicProcess.getPipelineContext();
        if (!context.inErrorRecoveryMode()) {
            model.endTemplate();
        }

        // Remove the process.
        dynamicProcess.removeProcess(process);
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.XMLPipelineContext.inErrorRecoveryMode()

        }

        // Remove the process.
        dynamicProcess.removeProcess(process);

        if (!context.inErrorRecoveryMode()) {
            Object popped = context.popObject();
            if (popped != model) {
                XMLPipelineException error = new XMLPipelineException(
                        "Expected to remove object " + model +
                        "from the pipeline, but actually removed " + popped,
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.XMLPipelineContext.inErrorRecoveryMode()

        XMLPipelineContext context = dynamicProcess.getPipelineContext();

        // determine if we are in error recovery mode before the superclasses
        // endElement is invoked as the error recovery mode is reset whenever
        // the attempt operation process is removed from the pipeline.
        boolean inErrorRecoveryMode = context.inErrorRecoveryMode();

        TryModel model = (TryModel) object;
        model.endBlock(this.element);

        // if attempt succeeded (ie the pipeline was not in error recovery
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.XMLPipelineContext.inErrorRecoveryMode()

        TryProcess process = (TryProcess) object;
        TryModel model = process;

        XMLPipelineContext context = dynamicProcess.getPipelineContext();
        if (!context.inErrorRecoveryMode()) {
            model.endTry();

            context.popObject(model);
        }
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.XMLPipelineContext.inErrorRecoveryMode()

            context.popObject(model);
        }

        dynamicProcess.removeProcess(process);

        if (!context.inErrorRecoveryMode()) {
            SAXParseException exception = model.getException(context);
            if (exception != null) {
                getTargetProcess(dynamicProcess).error(exception);
            }
        }
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.XMLPipelineContext.inErrorRecoveryMode()

        } else {
            // If the process is null and we are in Error Recovery Mode,
            // it's a correct situation - it means we are recovering from an
            // error in our own start element
            XMLPipelineContext context = dynamicProcess.getPipelineContext();
            if (context.inErrorRecoveryMode()) {
                dynamicProcess.removeProcess();
            }
        }
    }
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.XMLPipelineContext.inErrorRecoveryMode()

     * @throws SAXException if an error occurs
     */
    public void doIncludeServerResource() throws SAXException {
        // retrieve the pipeline context
        XMLPipelineContext context = getPipelineContext();
        if (!context.inErrorRecoveryMode()) {
            // Get the Servleet request and response from the header
            ServletRequest request = (ServletRequest)context.getProperty(
                    ServletRequest.class);

            ServletResponse response = (ServletResponse)context.getProperty(
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.XMLPipelineContext.inErrorRecoveryMode()

    public void unloadTemplatesHandler(Boolean compilable,
                                       boolean transformation)
            throws SAXException {

        XMLPipelineContext context = getPipelineContext();
        if (null == templatesHandler && !context.inErrorRecoveryMode()) {
            throw new IllegalStateException("No templates handler to unload");
        }

        if (templatesHandler != null) {
            templatesHandler.endDocument();
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.XMLPipelineContext.inErrorRecoveryMode()

     * is to be transformed.
     * @throws SAXException if an error occurs
     */
    public void beginTransform() throws SAXException {
        XMLPipelineContext context = getPipelineContext();
        if (!context.inErrorRecoveryMode()) {
            // run through the list of Transformer handlers and set up the
            // transformations

            XMLProcess cup = new ContextManagerProcess(true);
            cup.setPipeline(getPipeline());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.