Examples of createOMAttribute()


Examples of org.apache.axiom.om.OMFactory.createOMAttribute()

    OMElement str = factory.createOMElement("SecurityTokenReference", secNS);
   
    OMElement ref = factory.createOMElement("Reference", secNS);
    str.addChild(ref);
   
    OMAttribute uriAttr = factory.createOMAttribute("URI", null, uri);
    OMAttribute typeAttr = factory.createOMAttribute("ValueType", null, type);
   
    ref.addAttribute(uriAttr);
    ref.addAttribute(typeAttr);
   
View Full Code Here

Examples of org.apache.axiom.om.OMFactory.createOMAttribute()

   
    OMElement ref = factory.createOMElement("Reference", secNS);
    str.addChild(ref);
   
    OMAttribute uriAttr = factory.createOMAttribute("URI", null, uri);
    OMAttribute typeAttr = factory.createOMAttribute("ValueType", null, type);
   
    ref.addAttribute(uriAttr);
    ref.addAttribute(typeAttr);
   
    log.debug("Exit: UnitTestSecurityManager::createSecurityTokenReference " + str);
View Full Code Here

Examples of org.apache.axiom.om.OMFactory.createOMAttribute()

                factory.createOMNamespace("http://schemas.xmlsoap.org/ws/2004/08/eventing", "wse");

        if (mode.equals("subscribe")) {
            OMElement subscribeOm = factory.createOMElement("Subscribe", nswse);
            OMElement deliveryOm = factory.createOMElement("Delivery", nswse);
            deliveryOm.addAttribute(factory.createOMAttribute("Mode", null,
                    "http://schemas.xmlsoap.org/ws/2004/08/eventing/DeliveryModes/Push"));
            OMElement notifyToOm = factory.createOMElement("NotifyTo", nswse);
            OMElement addressOm = factory.createOMElement("Address", nswsa);
            factory.createOMText(addressOm, address);
            OMElement expiresOm = factory.createOMElement("Expires", nswse);
View Full Code Here

Examples of org.apache.axiom.om.OMFactory.createOMAttribute()

            OMElement addressOm = factory.createOMElement("Address", nswsa);
            factory.createOMText(addressOm, address);
            OMElement expiresOm = factory.createOMElement("Expires", nswse);
            factory.createOMText(expiresOm, expires);
            OMElement filterOm = factory.createOMElement("Filter", nswse);
            filterOm.addAttribute(factory.createOMAttribute("Dialect", null,
                    "http://synapse.apache.org/eventing/dialect/topicFilter"));
            factory.createOMText(filterOm, topic);


            notifyToOm.addChild(addressOm);
View Full Code Here

Examples of org.apache.axiom.om.OMFactory.createOMAttribute()

        OMElement element1 = factory.createOMElement(new QName("a"));
        element1.declareNamespace(ns1);
        OMElement element2 = factory.createOMElement(new QName("b"), element1);
        element2.declareNamespace(ns2);
        OMElement element3 = factory.createOMElement(new QName("c"), element2);
        OMAttribute att = factory.createOMAttribute("attr", ns1, "test");
        element3.addAttribute(att);
        Iterator it = element3.getAllDeclaredNamespaces();
        assertTrue(it.hasNext());
        assertEquals(ns1, it.next());
        assertFalse(it.hasNext());
View Full Code Here

Examples of org.apache.axiom.om.impl.dom.factory.OMDOMFactory.createOMAttribute()

    public void testQNames() throws Exception {
        String ATTR = "attr";
        String NSURI = "http://ns1";
        OMFactory fac = new OMDOMFactory();
        OMNamespace ns = new NamespaceImpl(NSURI);
        OMAttribute attr = fac.createOMAttribute(ATTR, ns, "value");
        QName qname = attr.getQName();
        assertEquals("Wrong namespace", NSURI, qname.getNamespaceURI());
        assertEquals("Wrong localPart", ATTR, qname.getLocalPart());
        assertEquals("Wrong prefix", "", qname.getPrefix());
    }
View Full Code Here

Examples of org.apache.axiom.om.impl.llom.factory.OMLinkedListImplFactory.createOMAttribute()

            throw new AxisFault("I/O error", ex);
        }
       
        OMFactory factory = new OMLinkedListImplFactory();
        OMElement message = factory.createOMElement(SyslogConstants.MESSAGE);
        message.addAttribute(factory.createOMAttribute(SyslogConstants.FACILITY, null, facility));
        message.addAttribute(factory.createOMAttribute(SyslogConstants.SEVERITY, null, severity));
        if (tag != null) {
            message.addAttribute(factory.createOMAttribute(SyslogConstants.TAG, null, tag));
        }
        if (pid != -1) {
View Full Code Here

Examples of org.apache.axiom.om.impl.llom.factory.OMLinkedListImplFactory.createOMAttribute()

        }
       
        OMFactory factory = new OMLinkedListImplFactory();
        OMElement message = factory.createOMElement(SyslogConstants.MESSAGE);
        message.addAttribute(factory.createOMAttribute(SyslogConstants.FACILITY, null, facility));
        message.addAttribute(factory.createOMAttribute(SyslogConstants.SEVERITY, null, severity));
        if (tag != null) {
            message.addAttribute(factory.createOMAttribute(SyslogConstants.TAG, null, tag));
        }
        if (pid != -1) {
            message.addAttribute(factory.createOMAttribute(SyslogConstants.PID, null, String.valueOf(pid)));
View Full Code Here

Examples of org.apache.axiom.om.impl.llom.factory.OMLinkedListImplFactory.createOMAttribute()

        OMFactory factory = new OMLinkedListImplFactory();
        OMElement message = factory.createOMElement(SyslogConstants.MESSAGE);
        message.addAttribute(factory.createOMAttribute(SyslogConstants.FACILITY, null, facility));
        message.addAttribute(factory.createOMAttribute(SyslogConstants.SEVERITY, null, severity));
        if (tag != null) {
            message.addAttribute(factory.createOMAttribute(SyslogConstants.TAG, null, tag));
        }
        if (pid != -1) {
            message.addAttribute(factory.createOMAttribute(SyslogConstants.PID, null, String.valueOf(pid)));
        }
        message.setText(content);
View Full Code Here

Examples of org.apache.axiom.om.impl.llom.factory.OMLinkedListImplFactory.createOMAttribute()

        message.addAttribute(factory.createOMAttribute(SyslogConstants.SEVERITY, null, severity));
        if (tag != null) {
            message.addAttribute(factory.createOMAttribute(SyslogConstants.TAG, null, tag));
        }
        if (pid != -1) {
            message.addAttribute(factory.createOMAttribute(SyslogConstants.PID, null, String.valueOf(pid)));
        }
        message.setText(content);
       
        return message;
    }
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.