Package com.volantis.xml.pipeline.sax

Examples of com.volantis.xml.pipeline.sax.XMLPipelineFilter


    // javadoc inherited
    public XMLPipelineReader createPipelineReader(XMLPipeline pipeline)
            throws SAXException {
        XMLReader reader = XMLReaderFactory.createXMLReader(false);
        XMLPipelineFilter filter = wrapper.createPipelineFilter(pipeline);
        filter.setParent(reader);
        return filter;
    }
View Full Code Here


        serverMock = new HttpServerMock();

        writer = new StringWriter();

        XMLPipelineFactory factory = XMLPipelineFactory.getDefaultInstance();
        XMLPipelineFilter filter = createPipelineFilter(factory,
                createErrorHandler(), writer);

        pipeline = filter.getPipelineProcess().getPipeline();
    }
View Full Code Here

        // the replay.
        XMLProcess contextUpdatingProcess = factory.createContextUpdatingProcess();

        pipeline.addHeadProcess(contextUpdatingProcess);

        XMLPipelineFilter mcsFilter = factory.createPipelineFilter(pipeline);

        mcsFilter.setContentHandler(mcsContentHandler);

        // Replay the SAX events into the pipeline.
        PipelinePlayer player = recording.createPlayer();
        player.play(pipeline.getPipelineProcess());
    }
View Full Code Here

        environmentContext.initalisePipelineContextEnvironment(pipelineContext);

      XMLPipeline pipeline = factory.createDynamicPipeline(pipelineContext);
      // create the pipeline fiter
      XMLPipelineFilter pipelineFilter = null;
        try {
            pipelineFilter =
            factory.createPipelineFilter(pipeline);
        } catch (SAXException se) {
            throw new ExtendedRuntimeException(se);
        }


        // Get hold of a basic parser and set it as the parent of the pipeline
        XMLReader reader = getXMLReader();

        pipelineFilter.setParent(reader);

        // store the Pipeline Context away in the environment context. This allows other
        // objects access to the current pipeline context
        setPipelineContext(pipelineContext, requestContext);
View Full Code Here

                    ContextInternals.getMarinerPageContext(context);
            XMLReader reader = MarlinSAXHelper.getXMLReader(context);
            reader.setContentHandler(MarlinSAXHelper.
                    getContentHandler(context));
            // @todo this is nasty: we assume that the reader is actually an XMLPipelineFilter
            XMLPipelineFilter filter = (XMLPipelineFilter) reader;
            XMLPipelineContext pipelineContext = filter.getPipelineContext();

            // set the Base URI in the pipeline's context
            try {
                URL baseURI = pageContext.getAbsoluteURL(
                        pageContext.getRequestURL(false));
View Full Code Here

TOP

Related Classes of com.volantis.xml.pipeline.sax.XMLPipelineFilter

Copyright © 2018 www.massapicom. 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.