Package com.volantis.xml.pipeline.sax

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


     */
    public void endElement(DynamicProcess dynamicProcess,
                           ExpandedName element,
                           Object object)
            throws SAXException {
        XMLProcess process = (XMLProcess)object;

        preRemoveProcess(dynamicProcess, element, process);


        // Remove the process that was added via the startElement
View Full Code Here


        next.addAttribute("", "count", "count", "CDATA",
                String.valueOf(count));

        // Get the process after the dynamic process so it does not
        // reenter itself otherwise that would cause an infinite loop.
        XMLProcess process = getTargetProcess(dynamicProcess);
        process.startElement(element.getNamespaceURI(),
                element.getLocalName(), "", next);

        return null;
    }
View Full Code Here

            DynamicProcess dynamicProcess, ExpandedName element, Object object)
            throws SAXException {

        // Get the process after the dynamic process so it does not
        // reenter itself otherwise that would cause an infinite loop.
        XMLProcess process = getTargetProcess(dynamicProcess);
        process.endElement(element.getNamespaceURI(),
                element.getLocalName(), "");
    }
View Full Code Here

        Dependency dependency = context.extractDependency();

        context.popDependencyTracker();

        XMLProcess target = getTargetProcess(dynamicProcess);

        // Generate an element containing the freshness.
        Freshness freshness = dependency.freshness(context);
        generateSimpleElement(target, freshness.toString(),
                "freshness");
View Full Code Here

    public Object startElement(
            DynamicProcess dynamicProcess, ExpandedName element,
            Attributes attributes) throws SAXException {

        XMLProcess process = getTargetProcess(dynamicProcess);
        if ((counter & 1) == 0) {
            process.characters(SIMPLE, 0, SIMPLE_LENGTH);
        } else {
            process.startElement(element.getNamespaceURI(), "complex", "",
                    attributes);
            process.endElement(element.getNamespaceURI(), "complex", "");
        }

        counter += 1;

        return null;
View Full Code Here

                    webdAccessor , false);

            ProxySessionIdOperationProcess proxySessionOperationProcess =
                    new ProxySessionIdOperationProcess();

            XMLProcess urlRewriterProcess =
                    createURLRewriterProcess(httpRequest.getContextPath(),
                                             urlRemapper);

            // Add them to the pipeline, which will start the processes.
            if (transformURL != null) {
View Full Code Here

     *
     * @return the newly created URL rewrite process.
     */
    private XMLProcess createURLRewriterProcess(
            String contextPath, GenericURLRemapper urlRemapper) {
        XMLProcess process = null;
        if (contextPath != null) {
            URLRewriteProcessConfiguration urlRewriteConfig =
                    new URLRewriteProcessConfiguration();

            ConverterConfiguration convertConfig =
View Full Code Here

        XMLPipeline pipeline = createPipeline(requestContext);

        // get the ContextUpdatingProcess, this will make sure that the
        // name spaces are pushed onto the namespace tracker during
        // the replay.
        XMLProcess contextUpdatingProcess = factory.createContextUpdatingProcess();

        pipeline.addHeadProcess(contextUpdatingProcess);

        XMLPipelineFilter mcsFilter = factory.createPipelineFilter(pipeline);
View Full Code Here

        }
    }

    // Javadoc Inherited
    public void endPrefixMapping(String arg0) throws SAXException {
        XMLProcess process = getConsumerProcess();
        if (process != null) {
            process.endPrefixMapping(arg0);
        } else {
            super.endPrefixMapping(arg0);
        }
    }
View Full Code Here

        }
    }

    // Javadoc Inherited
    public void setDocumentLocator(Locator arg0) {
        XMLProcess process = getConsumerProcess();
        if (process != null) {
            process.setDocumentLocator(arg0);
        } else {
            super.setDocumentLocator(arg0);
        }
    }
View Full Code Here

TOP

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

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.