Package org.apache.axis2.om.impl.llom

Examples of org.apache.axis2.om.impl.llom.OMElementImpl


    public OMElement createOMElement(String localName, OMNamespace ns) {
        return new OMElementImpl(localName, ns);
    }

    public OMElement createOMElement(String localName, OMNamespace ns, OMContainer parent) {
        return new OMElementImpl(localName, ns, parent);
    }
View Full Code Here


     * @return element
     */
    public OMElement createOMElement(String localName, OMNamespace ns,
                                     OMContainer parent,
                                     OMXMLParserWrapper builder) {
        return new OMElementImpl(localName, ns, parent,
                builder);
    }
View Full Code Here

     * @return
     * @throws OMException
     */
    public OMElement createOMElement(QName qname, OMContainer parent)
            throws OMException {
        return new OMElementImpl(qname, parent);
    }
View Full Code Here

     * @param localName
     * @param ns
     * @return element
     */
    public OMElement createOMElement(String localName, OMNamespace ns) {
        return new OMElementImpl(localName, ns);
    }
View Full Code Here

    public OMElement createOMElement(String localName, OMNamespace ns) {
        return new OMElementImpl(localName, ns);
    }

    public OMElement createOMElement(String localName, OMNamespace ns, OMContainer parent) {
        return new OMElementImpl(localName, ns, parent);
    }
View Full Code Here

     * @return element
     */
    public OMElement createOMElement(String localName, OMNamespace ns,
                                     OMContainer parent,
                                     OMXMLParserWrapper builder) {
        return new OMElementImpl(localName, ns, parent,
                builder);
    }
View Full Code Here

     * @return
     * @throws OMException
     */
    public OMElement createOMElement(QName qname, OMContainer parent)
            throws OMException {
        return new OMElementImpl(qname, parent);
    }
View Full Code Here

        getDetail();
        if (getDetail() == null) {
            setDetail(getNewSOAPFaultDetail(this));

        }
        OMElement faultDetailEnty = new OMElementImpl(
                SOAPConstants.SOAP_FAULT_DETAIL_EXCEPTION_ENTRY,
                this.getNamespace());
        faultDetailEnty.setText(sw.getBuffer().toString());
        getDetail().addChild(faultDetailEnty);
    }
View Full Code Here

        OMOutputFormat baseOutputFormat = new OMOutputFormat();
        baseOutputFormat.setDoOptimize(false);

        OMNamespaceImpl soap = new OMNamespaceImpl(
                "http://schemas.xmlsoap.org/soap/envelope/", "soap");
        OMElement envelope = new OMElementImpl("Envelope", soap);
        OMElement body = new OMElementImpl("Body", soap);

        OMNamespaceImpl dataName = new OMNamespaceImpl(
                "http://www.example.org/stuff", "m");
        OMElement data = new OMElementImpl("data", dataName);

        expectedImage =
                new ImageIO().loadImage(
                        new FileInputStream(
                                getTestResourceFile(imageInFileName)));
        ImageDataSource dataSource = new ImageDataSource("WaterLilies.jpg",
                expectedImage);
        expectedDH = new DataHandler(dataSource);
        OMText binaryNode = new OMTextImpl(expectedDH, true);

        envelope.addChild(body);
        body.addChild(data);
        data.addChild(binaryNode);

        envelope.serializeAndConsume(new FileOutputStream(outBase64File), baseOutputFormat);
        envelope.serializeAndConsume(new FileOutputStream(outMTOMFile), mtomOutputFormat);
    }
View Full Code Here

    OMOutput mtomOutput = new OMOutput(new FileOutputStream(outMTOMFile),true);
    OMOutput baseOutput = new OMOutput(new FileOutputStream(outBase64File),false);
   
    OMNamespaceImpl soap = new OMNamespaceImpl(
        "http://schemas.xmlsoap.org/soap/envelope/", "soap");
    OMElement envelope = new OMElementImpl("Envelope", soap);
    OMElement body = new OMElementImpl("Body", soap);
   
    OMNamespaceImpl dataName = new OMNamespaceImpl(
        "http://www.example.org/stuff", "m");
    OMElement data = new OMElementImpl("data", dataName);
   
    expectedImage = new JDK13IO().loadImage(new FileInputStream(
        getTestResourceFile(imageInFileName)));
    ImageDataSource dataSource = new ImageDataSource("WaterLilies.jpg",
        expectedImage);
    expectedDH = new DataHandler(dataSource);
    OMText binaryNode = new OMTextImpl(expectedDH, true);
   
    envelope.addChild(body);
    body.addChild(data);
    data.addChild(binaryNode);
   
    envelope.serialize(baseOutput);
    baseOutput.flush();
   
    envelope.serialize(mtomOutput);
View Full Code Here

TOP

Related Classes of org.apache.axis2.om.impl.llom.OMElementImpl

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.