Package org.apache.axiom.om

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


        Enumeration keysEnum = cryptoProperties.keys();
        while (keysEnum.hasMoreElements()) {
            String key = (String) keysEnum.nextElement();
            OMElement prop = fac.createOMElement(new QName("property"), cryptoElem);
            prop.addAttribute(fac.createOMAttribute("name", null, key));
            prop.setText(cryptoProperties.getProperty(key));
        }

        if (!(keyComputation == AbstractIssuerConfig.KeyComputation.KEY_COMP_PROVIDE_ENT ||
              keyComputation == AbstractIssuerConfig.KeyComputation.KEY_COMP_USE_OWN_KEY ||
View Full Code Here


    public static Parameter getTokenCancelerConfigParameter() {

        OMFactory fac = OMAbstractFactory.getOMFactory();
        OMElement paramElem = fac.createOMElement(new QName("parameter"), null);
        paramElem.addAttribute(fac.createOMAttribute("name",
                                                     null,
                                                     TokenCancelerConfig.TOKEN_CANCELER_CONFIG.
                                                             getLocalPart()));
        fac.createOMElement(TokenCancelerConfig.TOKEN_CANCELER_CONFIG,
                            paramElem);
View Full Code Here

                for (String value : propValues) {
                    OMElement propertyOM = factory.createOMElement(
                            new QName(DumpConstants.PROPERTY_ENTRY));

                    // adding the key and value as attributes
                    OMAttribute keyAttribute = factory.createOMAttribute(
                            DumpConstants.PROPERTY_ENTRY_KEY, null, key);
                    propertyOM.addAttribute(keyAttribute);

                    if (value != null) {
                        propertyOM.setText(value);
View Full Code Here

                UserCoreConstants.RealmConfig.LOCAL_NAME_USER_MANAGER));
        OMElement realmElement = factory.createOMElement(new QName(
                UserCoreConstants.RealmConfig.LOCAL_NAME_REALM));
        String realmName = realmConfig.getRealmClassName();
       
        OMAttribute propAttr = factory.createOMAttribute(
                UserCoreConstants.RealmConfig.ATTR_NAME_PROP_NAME, null, realmName);
        realmElement.addAttribute(propAttr);
       
        rootElement.addChild(realmElement);
View Full Code Here

                try {
                    OMElement endpointElement = AXIOMUtil.stringToOM(epName);
                    OMFactory fac = OMAbstractFactory.getOMFactory();
                    String name = originalKey.replace(":", "/");
                    endpointElement.addAttribute(fac.createOMAttribute("name",
                            fac.createOMNamespace(XMLConfigConstants.NULL_NAMESPACE, ""),
                            name));
                    XMLPrettyPrinter.prettify(endpointElement, stream);
                } catch (Exception e) {
                    handleFault("Unable to pretty print configuration", e);
View Full Code Here

        OMElement cachingAssertionEle = fac.createOMElement("CachingAssertion", wschNs);
        cachingAssertionEle.addChild(policyEle);

        OMElement rootPolicyEle = fac.createOMElement("Policy", wspNs);
        rootPolicyEle.addAttribute(fac.createOMAttribute("Id", wsuNs, "WSO2CachingPolicy"));
        rootPolicyEle.addChild(cachingAssertionEle);

        // Creates a Policy object out of the OMElement
        return PolicyEngine.getPolicy(rootPolicyEle);
    }
View Full Code Here

            String serviceBeanName = springBeans[i];

            OMElement serviceEle = factory.createOMElement("service", "", "");

            OMElement schemaEle = factory.createOMElement("schema", "", "");
            schemaEle.addAttribute(factory.createOMAttribute(
                    "elementFormDefaultQualified", emptyNS, "false"));

            serviceEle.addAttribute(factory.createOMAttribute("name", emptyNS,
                    serviceBeanName));
View Full Code Here

            OMElement schemaEle = factory.createOMElement("schema", "", "");
            schemaEle.addAttribute(factory.createOMAttribute(
                    "elementFormDefaultQualified", emptyNS, "false"));

            serviceEle.addAttribute(factory.createOMAttribute("name", emptyNS,
                    serviceBeanName));

            OMElement msgReceiversEle = factory.createOMElement(
                    "messageReceivers", "", "");
            OMElement msgReceiverEle1 = factory.createOMElement(
View Full Code Here

            while (iterator.hasNext()) {
                DataSourceInformation information = iterator.next();
                if (information != null) {
                    OMElement element = factory.createOMElement(
                            (new QName(DATASOURCE_EXTENSION_NS, "datasource", "datasource")));
                    element.addAttribute(factory.createOMAttribute("name", nullNS,
                            information.getAlias()));
                    root.addChild(element);
                }
            }
        } catch (Exception e) {
View Full Code Here

            WSDL2Constants.IN_FAULT_LOCAL_NAME, wsdl);
      } else {
        bindingMessageElement = omFactory.createOMElement(
            WSDL2Constants.OUT_FAULT_LOCAL_NAME, wsdl);
      }
      bindingMessageElement.addAttribute(omFactory.createOMAttribute(
          WSDL2Constants.ATTRIBUTE_REF, null, tns.getPrefix() + ":"
              + this.name));

      WSDL20Util.extractWSDL20SoapFaultInfo(options,
          bindingMessageElement, omFactory, wsoap);
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.