Examples of inErrorRecoveryMode()


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

     * transforming has been received.
     * @throws SAXException if an error occurs
     */
    public void endTransform() throws SAXException {
        XMLPipelineContext context = getPipelineContext();
        if (!context.inErrorRecoveryMode()) {
            if (getTemplateCount() > 0) {
                // contentHandler will be the TransformerHandler at the head of
                // the chain. Need to call endDocument() for the transformers to
                // actually perform the transformations.
                // The DocumentEventFilter will filter the endDocument() event
View Full Code Here

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

    }

    // javadoc inherited from interface
    public void stopProcess() throws SAXException {
        XMLPipelineContext context = getPipelineContext();
        if (!context.inErrorRecoveryMode()) {

            MonitoringConfiguration monitoringConfiguration =
                    (MonitoringConfiguration) context.getPipelineConfiguration()
                    .retrieveConfiguration(MonitoringConfiguration.class);
View Full Code Here

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

                                    contentType,
                                    contentEncoding);
                } catch (SAXException e) {
                     XMLPipelineContext context = getPipelineContext();
                    // If the pipeline is already handling this error,
                     if (context.inErrorRecoveryMode()) {
                         // Then we assume that there is a containing try operation that
                         // needs help to avoid the pipeline crashing, so we need to
                         // mask the exception. So just continue on and hope the
                         // pipeline error handling will save us. Note that we cannot
                         // re-report it via fatalError or the flow control manager
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()

    // javadoc inherited
    public void stopProcess() throws SAXException {
        XMLPipelineContext context = getPipelineContext();

        boolean inErrorRecoveryMode = context.inErrorRecoveryMode();

        // If this thread is responsible for updating the cache entry, we need
        // to wake up any threads that are waiting for us to finish.
        if (state == CacheBodyOperationProcessState.RECORD_AND_FORWARD) {
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.