Package org.apache.axiom.om

Examples of org.apache.axiom.om.OMElement.detach()


            OMElement operationElement = serviceElement.getFirstChildWithName(new QName("operation"));
            String operation;
            if (operationElement != null) {
                operation = operationElement.getText();
                // and then remove the operation child,
                operationElement.detach();
            else {
                operation = "Add";   
            }
           
            OMElement currentNameElement = serviceElement.getFirstChildWithName(new QName("currentName"));
View Full Code Here


           
            OMElement currentNameElement = serviceElement.getFirstChildWithName(new QName("currentName"));
            String currentName;
            if (currentNameElement != null) {
                currentName = currentNameElement.getText();
                currentNameElement.detach();
            } else {
                currentName = CommonUtil.getServiceName(serviceElement);
            }
            OMElement currentNamespaceElement = serviceElement.getFirstChildWithName(new QName("currentNamespace"));
            String currentNamespace;
View Full Code Here

            }
            OMElement currentNamespaceElement = serviceElement.getFirstChildWithName(new QName("currentNamespace"));
            String currentNamespace;
            if (currentNamespaceElement != null) {
                currentNamespace = currentNamespaceElement.getText();
                currentNamespaceElement.detach();
            } else {
                currentNamespace = CommonUtil.getServiceNamespace(serviceElement);
            }

            ServiceManager serviceManager = new ServiceManager(registry);
View Full Code Here

            OMElement existingElement = assertion.getValue();
            //detach secondLevelPolicy 'All' assertions within the existing element
            OMElement existingSecondLevelPolicy = existingElement
                    .getFirstChildWithName(Constants.Q_ELEM_POLICY);
            while (existingSecondLevelPolicy != null) {
                existingSecondLevelPolicy.detach();
                existingSecondLevelPolicy = existingElement
                        .getFirstChildWithName(Constants.Q_ELEM_POLICY);
            }
            policyElement.addChild(existingElement);
            throttleAssertion = this.getThrottleAssertion(level, policyElement);
View Full Code Here

                        DeploymentConstants.ATTRIBUTE_NAME)))) {
                    break;
                }
            }
            if (p != null) {
                p.detach();
            }
            saveTransport(element, enabled);
        }
    }
View Full Code Here

    public LeadCrosscutParametersUtil(Properties props) {
        this();
        for (Iterator<OMElement> it = target.getChildElements(); it.hasNext();) {
            OMElement child = it.next();
            child.detach();
        }

        String key;
        String value;
        for (Iterator i = props.keySet().iterator(); i.hasNext(); setString(key, value)) {
View Full Code Here

    }

    public void setFromProperties(Properties props) {
        for (Iterator it = target.getChildElements(); it.hasNext();) {
            OMElement child = (OMElement) it.next();
            child.detach();
        }
        String key;
        String value;
        for (Iterator i = props.keySet().iterator(); i.hasNext(); setString(key, value)) {
            key = (String) i.next();
View Full Code Here

            if (replaceHeaders) {
              QName qname = new QName(addressingNamespace, name, WSA_DEFAULT_PREFIX);
              Iterator iterator = header.getChildrenWithName(qname);
              while (iterator.hasNext()) {
                OMElement addressingHeader = (OMElement)iterator.next();
                addressingHeader.detach();
              }
            }
          } else {
            boolean exists = didAddressingHeaderExist(name);
            if (exists && replaceHeaders) {
View Full Code Here

              OMElement addressingHeader = header.getFirstChildWithName(qname);
              if (LoggingControl.debugLoggingAllowed && log.isTraceEnabled()) {
                log.trace("isAddressingHeaderAlreadyAvailable: Removing existing header:" +
                    addressingHeader.getLocalName());
              }
              addressingHeader.detach();
            } else {
              status = exists;
            }
          }
View Full Code Here

        // Forces the parser to read all of the blocks
        getNumBodyBlocks();

        OMElement om = this._getChildOMElement(_getBodyBlockParent(), index);
        if (om != null) {
            om.detach();
        }
    }

    public int getNumHeaderBlocks() throws WebServiceException {
        return _getNumChildElements(root.getHeader());
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.