Package org.apache.axiom.om

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


    private OMElement serializeAction(RewriteAction a) {
        OMElement action = fac.createOMElement("action", synNS);
        if (a.getValue() != null) {
            action.addAttribute("value", a.getValue(), null);
        } else if (a.getXpath() != null) {
            action.addAttribute("xpath", a.getXpath().toString(), null);
        }

        if (a.getRegex() != null) {
            action.addAttribute("regex", a.getRegex(), null);
        }
View Full Code Here


        } else if (a.getXpath() != null) {
            action.addAttribute("xpath", a.getXpath().toString(), null);
        }

        if (a.getRegex() != null) {
            action.addAttribute("regex", a.getRegex(), null);
        }

        int type = a.getActionType();
        String typeStr;
        switch (type) {
View Full Code Here

                break;

            default:
                typeStr = URLRewriteMediatorFactory.ACTION_SET;
        }
        action.addAttribute("type", typeStr, null);

        int fragment = a.getFragmentIndex();
        String fragmentStr;
        switch (fragment) {
            case URIFragments.PROTOCOL:
View Full Code Here

                break;

            default:
                fragmentStr = URLRewriteMediatorFactory.FRAGMENT_FULL_URI;
        }
        action.addAttribute("fragment", fragmentStr, null);
       
        return action;
    }

    public String getMediatorClassName() {
View Full Code Here

        String name = messageStoreMediator.getName();

        if(name != null) {
            OMAttribute nameAtt = fac.createOMAttribute("name" , nullNS , name);
            storeElem.addAttribute(nameAtt);
        }

        //In normal operations messageStoreName can't be null
        //But we do a null check here since in run time there can be manuel modifications
        if(messageStoreName != null ) {
View Full Code Here

        //In normal operations messageStoreName can't be null
        //But we do a null check here since in run time there can be manuel modifications
        if(messageStoreName != null ) {
            OMAttribute msName = fac.createOMAttribute(ATT_MESSAGE_STORE ,nullNS,messageStoreName);
            storeElem.addAttribute(msName);
        } else {
            handleException("Can't serialize MessageStore Mediator message store is null ");
        }

View Full Code Here

        String sequence = messageStoreMediator.getOnStoreSequence();
        // sequence is an optional parameter
        if(sequence != null) {
            OMAttribute sequenceAtt = fac.createOMAttribute(ATT_SEQUENCE , nullNS ,sequence);
            storeElem.addAttribute(sequenceAtt);
        }

        return storeElem;

    }
View Full Code Here

       
        String inProperty = mediator.getInputProperty();
        String outProperty = mediator.getOutputProperty();
       
        if (inProperty != null) {
          rewrite.addAttribute(fac.createOMAttribute("inProperty", nullNS,
                                                        inProperty));
        }
        if (outProperty != null) {
          rewrite.addAttribute(fac.createOMAttribute("outProperty", nullNS,
                                                        outProperty));
View Full Code Here

        if (inProperty != null) {
          rewrite.addAttribute(fac.createOMAttribute("inProperty", nullNS,
                                                        inProperty));
        }
        if (outProperty != null) {
          rewrite.addAttribute(fac.createOMAttribute("outProperty", nullNS,
                                                        outProperty));
        }

        saveTracingState(rewrite, mediator);
       
View Full Code Here

    }

    private OMElement serializeAction(RewriteAction a) {
        OMElement action = fac.createOMElement("action", synNS);
        if (a.getValue() != null) {
            action.addAttribute("value", a.getValue(), null);
        } else if (a.getXpath() != null) {
            action.addAttribute("xpath", a.getXpath().toString(), null);
        }

        if (a.getRegex() != null) {
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.