Package com.volantis.xml.pipeline.sax

Examples of com.volantis.xml.pipeline.sax.XMLProcess.startElement()


        String responseQName = SAXUtils.createPrefixedName(responsePrefix,
                                                           RESPONSE);
        String messageQName = SAXUtils.createPrefixedName(responsePrefix,
                                                          MESSAGE);

        consumer.startElement(responseNamespace, RESPONSE, responseQName,
                              new AttributesImpl());

        consumer.startElement(responseNamespace, MESSAGE, messageQName,
                              new AttributesImpl());
View Full Code Here


                                                          MESSAGE);

        consumer.startElement(responseNamespace, RESPONSE, responseQName,
                              new AttributesImpl());

        consumer.startElement(responseNamespace, MESSAGE, messageQName,
                              new AttributesImpl());

        // If the parts have a prefix we need to map them now.
        if (partPrefix != null) {
            namespaceManager.startPrefixMapping(partPrefix,
View Full Code Here

        for (int i = 0; i < message.size(); i++) {
            Part part = message.retrievePart(i);
            String partQName = SAXUtils.createPrefixedName(partPrefix,
                                                           part.getName());
            consumer.startElement(partNamespace, part.getName(), partQName,
                                  new AttributesImpl());

            Object value = part.getValue();
            if (value instanceof Element) {
                // This is a DOM Element. Use DOMToSAX.
View Full Code Here

        // set the next process
        XMLProcessTestable next = new XMLProcessTestable();
        process.setNextProcess(next);
       
        // invoke the method that is being tested
        process.startElement(namespaceURI, localName, qName, atts);
       
        // get hold of the current base uri from the pipeline context
        URL currentBase =
                process.getPipeline().getPipelineContext().getCurrentBaseURI();
       
View Full Code Here

        // has a next process set
        XMLProcess testable = createTestableProcess();
        prepareProcessForFlowControlTest(testable);
       
        // invoke the method being tested
        testable.startElement(NAMESPACE_URI, LOCAL_NAME, Q_NAME, ATTS);
       
        // in flow control mode ensure event was not forwarded to 
        // the next process
        XMLProcessTestable next =
                (XMLProcessTestable) testable.getNextProcess();
View Full Code Here

        // Don't call super.test.... methods because they expect
        // MessageAdapterProcess to forward the next adapter process which
        // it correctly does not.
        process.startProcess();
        process.startElement(NAMESPACE_URI, LOCAL_NAME, Q_NAME, ATTS);
        process.characters(CH, START, LENGTH);
        process.endElement(NAMESPACE_URI, LOCAL_NAME, Q_NAME);
        process.stopProcess();
    }
View Full Code Here

                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

        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;
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.