Examples of MappingRule


Examples of com.alibaba.citrus.service.mappingrule.MappingRule

            rules = emptyMap();
        }
    }

    public String getMappedName(String ruleType, String name) {
        MappingRule rule = rules.get(ruleType);

        if (rule == null) {
            if (parent == null) {
                throw new MappingRuleNotFoundException("Failed to get mapping rule of \"" + ruleType + "\"");
            } else {
                return parent.getMappedName(ruleType, name);
            }
        }

        return rule.getMappedName(name);
    }
View Full Code Here

Examples of com.alibaba.citrus.service.mappingrule.MappingRule

            rules = emptyMap();
        }
    }

    public String getMappedName(String ruleType, String name) {
        MappingRule rule = rules.get(ruleType);

        if (rule == null) {
            if (parent == null) {
                throw new MappingRuleNotFoundException("Failed to get mapping rule of \"" + ruleType + "\"");
            } else {
                return parent.getMappedName(ruleType, name);
            }
        }

        return rule.getMappedName(name);
    }
View Full Code Here

Examples of com.alibaba.citrus.service.mappingrule.MappingRule

            rules = emptyMap();
        }
    }

    public String getMappedName(String ruleType, String name) {
        MappingRule rule = rules.get(ruleType);

        if (rule == null) {
            if (parent == null) {
                throw new MappingRuleNotFoundException("Failed to get mapping rule of \"" + ruleType + "\"");
            } else {
                return parent.getMappedName(ruleType, name);
            }
        }

        return rule.getMappedName(name);
    }
View Full Code Here

Examples of org.apache.myfaces.tobago.config.MappingRule

  }

  private String remap(ServletRequest request, String requestURI) {
    FacesContext facesContext = FacesContext.getCurrentInstance();
    TobagoConfig config = TobagoConfig.getInstance(facesContext);
    MappingRule mappingRule = config.getMappingRule(requestURI);
    if (mappingRule == null) {
      return requestURI;
    }
    for (Iterator i = mappingRule.getAttributes().iterator(); i.hasNext();) {
      Attribute attribute = (Attribute) i.next();
      request.setAttribute(attribute.getKey(), attribute.getValue());
    }
    return mappingRule.getForwardUri();
  }
View Full Code Here

Examples of org.apache.myfaces.tobago.config.MappingRule

  }

  private String remap(ServletRequest request, String requestURI) {
    FacesContext facesContext = FacesContext.getCurrentInstance();
    TobagoConfig config = TobagoConfig.getInstance(facesContext);
    MappingRule mappingRule = config.getMappingRule(requestURI);
    if (mappingRule == null) {
      return requestURI;
    }
    for (Iterator i = mappingRule.getAttributes().iterator(); i.hasNext();) {
      Attribute attribute = (Attribute) i.next();
      request.setAttribute(attribute.getKey(), attribute.getValue());
    }
    return mappingRule.getForwardUri();
  }
View Full Code Here

Examples of org.apache.myfaces.tobago.config.MappingRule

  }

  private String remap(ServletRequest request, String requestURI) {
    FacesContext facesContext = FacesContext.getCurrentInstance();
    TobagoConfig config = TobagoConfig.getInstance(facesContext);
    MappingRule mappingRule = config.getMappingRule(requestURI);
    if (mappingRule == null) {
      return requestURI;
    }
    for (Iterator i = mappingRule.getAttributes().iterator(); i.hasNext();) {
      Attribute attribute = (Attribute) i.next();
      request.setAttribute(attribute.getKey(), attribute.getValue());
    }
    return mappingRule.getForwardUri();
  }
View Full Code Here

Examples of org.apache.myfaces.tobago.config.MappingRule

  }

  private String remap(ServletRequest request, String requestURI) {
    FacesContext facesContext = FacesContext.getCurrentInstance();
    TobagoConfig config = TobagoConfig.getInstance(facesContext);
    MappingRule mappingRule = config.getMappingRule(requestURI);
    if (mappingRule == null) {
      return requestURI;
    }
    for (Iterator i = mappingRule.getAttributes().iterator(); i.hasNext();) {
      Attribute attribute = (Attribute) i.next();
      request.setAttribute(attribute.getKey(), attribute.getValue());
    }
    return mappingRule.getForwardUri();
  }
View Full Code Here

Examples of org.apache.oozie.util.MappingRule

                String value = values[1].trim();
                if (key.equals("default")) {
                    defaultJMSConnInfo = new JMSConnectionInfo(value);
                }
                else {
                    mappingRules.add(new MappingRule(key, value));
                }
            }
        }
        else {
            LOG.warn("No JMS connection defined");
View Full Code Here

Examples of org.apache.oozie.util.MappingRule

                String value = values[1].trim();
                if (key.equals("default")) {
                    defaultJMSConnInfo = new JMSConnectionInfo(value);
                }
                else {
                    mappingRules.add(new MappingRule(key, value));
                }
            }
        }
        else {
            LOG.warn("No JMS connection defined");
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.