Package com.sun.appserv.management.config

Examples of com.sun.appserv.management.config.TransformationRuleConfig


        List dataList = new ArrayList();
        List ruleList = getTransformationRuleConfigList(webServiceKey);
        try{
            if (ruleList != null && !ruleList.isEmpty()) {
                for (Iterator iter = ruleList.iterator(); iter.hasNext();) {
                    TransformationRuleConfig ruleConfig = (TransformationRuleConfig)iter.next();
                    Map ruleMap = new HashMap();
                    ruleMap.put("RuleName", ruleConfig.getName());
                    if (ruleConfig.getEnabled()) {
                        ruleMap.put("RuleStatus", GuiUtil.getMessage("common.Enabled"));
                    } else {
                        ruleMap.put("RuleStatus", GuiUtil.getMessage("common.Disabled"));
                    }
                    ruleMap.put("RuleFile", ruleConfig.getRuleFileLocation());
                    ruleMap.put("ApplyTo", ruleConfig.getApplyTo());
                    ruleMap.put("selected", false);
                    dataList.add(ruleMap);
                }
            }
        }catch(Exception ex){
View Full Code Here


            }
            WebServiceEndpointConfig endpointConfig = getWebServiceEndpointConfig(webServiceKey);
            if (endpointConfig != null) {
                Map ruleMap = endpointConfig.getTransformationRuleConfigMap();
                for (int j=0; j < rules.length; j++) {
                    TransformationRuleConfig rule = (TransformationRuleConfig)ruleMap.get(rules[j]);
                    if (action.equals("enable")) rule.setEnabled(true);
                    if (action.equals("disable")) rule.setEnabled(false);
                    if (action.equals("remove")) endpointConfig.removeTransformationRuleConfig(rules[j]);
                }
            }
        } catch (Exception ex) {
            GuiUtil.handleException(handlerCtx, ex);
View Full Code Here

            Map m = wsc.getTransformationRuleConfigMap();
            int init = m.size();
            System.out.println("Transformation rules found " + init);
            Iterator itr = m.values().iterator();
            while (itr.hasNext()) {
                TransformationRuleConfig trCfg = (TransformationRuleConfig)
                itr.next();
                System.out.println("Transformation Rule's name "+
                        trCfg.getName());
            }

            /*

            /* Finish later, creating a transformation rule requires the
View Full Code Here

            System.out.println("Transformation rules found " + m.size());

           Iterator itr = m.values().iterator();
           while  ( itr.hasNext()) {
                TransformationRuleConfig tc = (TransformationRuleConfig)
                itr.next();
                System.out.println("rule name is " + tc.getName());
           }
           System.out.println("Getting tranformation rules in order ");
            List l = wsc.getTransformationRuleConfigList();

            System.out.println("Transformation rules found " + l.size());

           Iterator litr = l.iterator();
           while  ( litr.hasNext()) {
                TransformationRuleConfig tc = (TransformationRuleConfig)
                litr.next();
                System.out.println("rule name is " + tc.getName());
           }
       }
       assert(true);
    }   
View Full Code Here

TOP

Related Classes of com.sun.appserv.management.config.TransformationRuleConfig

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.