Examples of addRules()


Examples of org.apache.hadoop.gateway.filter.rewrite.api.UrlRewriteRulesDescriptor.addRules()

  }

  private void contributeRewriteRules( DeploymentContext context, Service service ) throws URISyntaxException, IOException {
    UrlRewriteRulesDescriptor hbaseRules = loadRulesFromTemplate();
    UrlRewriteRulesDescriptor clusterRules = context.getDescriptor( "rewrite" );
    clusterRules.addRules( hbaseRules );
  }

  private void contributeResources( DeploymentContext context, Service service ) throws URISyntaxException {
    List<FilterParamDescriptor> params;
View Full Code Here

Examples of org.apache.hadoop.gateway.filter.rewrite.api.UrlRewriteRulesDescriptor.addRules()

  }

  private void contributeRewriteRules( DeploymentContext context, Service service ) throws URISyntaxException, IOException {
    UrlRewriteRulesDescriptor serviceRules = loadRulesFromClassPath();
    UrlRewriteRulesDescriptor clusterRules = context.getDescriptor( "rewrite" );
    clusterRules.addRules( serviceRules );
  }

  public void contributeNameNodeResource( DeploymentContext context, Service service ) throws URISyntaxException {
    List<FilterParamDescriptor> params;
    ResourceDescriptor rootResource = context.getGatewayDescriptor().addResource();
View Full Code Here

Examples of org.apache.hadoop.gateway.filter.rewrite.api.UrlRewriteRulesDescriptor.addRules()

  }

  private void contributeRewriteRules( DeploymentContext context, Service service ) throws URISyntaxException, IOException {
    UrlRewriteRulesDescriptor oozieRules = loadRulesFromTemplate();
    UrlRewriteRulesDescriptor clusterRules = context.getDescriptor( "rewrite" );
    clusterRules.addRules( oozieRules );
  }

  public void contributeResources( DeploymentContext context, Service service ) throws URISyntaxException {
    ResourceDescriptor rootResource = context.getGatewayDescriptor().addResource();
    rootResource.role( service.getRole() );
View Full Code Here

Examples of org.apache.provisionr.api.network.NetworkBuilder.addRules()

    @VisibleForTesting
    Network apply(Network network) {
        NetworkBuilder result = network.toBuilder();
        for (int port : ports) {
            result.addRules(Rule.builder().anySource().tcp().port(port).createRule());
        }
        return result.createNetwork();
    }

    @XmlAttribute(name = "id")
View Full Code Here

Examples of org.springframework.rules.support.DefaultRulesSource.addRules()

        Rules rules = new Rules(ValidatingObject.class);
        Constraints c = Constraints.instance();
        rules.add(c.eq("intValue", 8));
        rules.add(c.eq("stringValue", "valid"));
        DefaultRulesSource source = new DefaultRulesSource();
        source.addRules(rules);
        RulesValidator rulesValidator = new RulesValidator(model, source);
        hibernateRulesValidator = new HibernateRulesValidator(model, ValidatingObject.class);
        CompositeRichValidator compositeValidator = new CompositeRichValidator(rulesValidator, hibernateRulesValidator);
        model.setValidator(compositeValidator);
        model.setValidating(true);
View Full Code Here

Examples of org.springframework.rules.support.DefaultRulesSource.addRules()

     */
    protected void registerAdditionalServices( DefaultApplicationServices applicationServices ) {
        DefaultRulesSource rulesSource = new DefaultRulesSource();
        Rules rules = new Rules(TestBean.class);
        rules.add("field", rules.required());
        rulesSource.addRules(rules);

        applicationServices.setRulesSource(rulesSource);
    }

    public void testEnabledState() {
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.