Examples of TdrData


Examples of com.alu.e3.prov.restapi.model.TdrData

    return mVal;
  }

  private static final TdrData fromDataModel(TdrGenerationRule tdrGenerationRule) {
    if (tdrGenerationRule==null) return null; //throw new IllegalArgumentException("tdrGenerationRules must not be null");
    TdrData t = new TdrData();
    t.getStatic().addAll  (BeanConverterUtil.<StaticTdr, TdrStaticRule>fromDataModels(tdrGenerationRule.getStaticRules()));
    t.getDynamic().addAll  (BeanConverterUtil.<DynamicTdr, TdrDynamicRule>fromDataModels(tdrGenerationRule.getDynamicRules()));
    return t;
  }
View Full Code Here

Examples of com.alu.e3.prov.restapi.model.TdrData

    HTTPSType httpsType = new HTTPSType();
    httpsType.setEnabled(true);
    api.setHttps(httpsType);

    TdrData tdrData = new TdrData();

    TdrType tdrType = new TdrType();
    tdrType.getType().add("apiRateLimit");

    DynamicTdr dt = new DynamicTdr();
    dt.setHttpHeaderName("HTTP_HEADER");
    dt.setTdrPropName("propname");
    dt.setTypes(tdrType);

    tdrData.getDynamic().add(dt);

    StaticTdr st = new StaticTdr();
    st.setValue("staticValue");
    st.setTdrPropName("staticName");

    st.setTypes(tdrType);

    tdrData.getStatic().add(st);
    api.setTdr(tdrData);


    return api;
  }
View Full Code Here

Examples of com.alu.e3.prov.restapi.model.TdrData

    api.setHttps(httpsType);
  }

  private void setDefaultTdrValue(Api api){
    if(api.getTdr() == null){
      api.setTdr(new TdrData());
    }
  }
View Full Code Here

Examples of com.alu.e3.prov.restapi.model.TdrData

    tdr.setEnabled("true");
    api.setTdrEnabled(tdr);

    api.setAuthentication(auth);

    TdrData tdrData = new TdrData();

    TdrType tdrType = new TdrType();
    tdrType.getType().add("apiRateLimit");

    DynamicTdr dt = new DynamicTdr();
    dt.setHttpHeaderName("HTTP_HEADER");
    dt.setTdrPropName("propname");
    dt.setTypes(tdrType);

    tdrData.getDynamic().add(dt);

    StaticTdr st = new StaticTdr();
    st.setValue("staticValue");
    st.setTdrPropName("staticName");

    st.setTypes(tdrType);

    tdrData.getStatic().add(st);

    api.setTdr(tdrData);

    HTTPSType httpsType = new HTTPSType();
    httpsType.setEnabled(true);
View Full Code Here

Examples of com.alu.e3.prov.restapi.model.TdrData

    HTTPSType httpsType = new HTTPSType();
    httpsType.setEnabled(true);
    httpsType.setTlsMode(com.alu.e3.prov.restapi.model.TLSMode.ONE_WAY);
    api.setHttps(httpsType);

    TdrData tdrData = new TdrData();

    TdrType tdrType = new TdrType();
    tdrType.getType().add("apiRateLimit");

    DynamicTdr dt = new DynamicTdr();
    dt.setHttpHeaderName("HTTP_HEADER");
    dt.setTdrPropName("propname");
    dt.setTypes(tdrType);

    tdrData.getDynamic().add(dt);

    StaticTdr st = new StaticTdr();
    st.setValue("staticValue");
    st.setTdrPropName("staticName");

    st.setTypes(tdrType);

    tdrData.getStatic().add(st);
    api.setTdr(tdrData);

    return api;
  }
View Full Code Here

Examples of com.alu.e3.prov.restapi.model.TdrData

    HTTPSType httpsType = new HTTPSType();
    httpsType.setEnabled(https);
    httpsType.setTlsMode(TLSMode.ONE_WAY);
    api.setHttps(httpsType);

    TdrData tdrData = new TdrData();

    TdrType tdrType = new TdrType();
    tdrType.getType().add("apiRateLimit");

    DynamicTdr dt = new DynamicTdr();
    dt.setHttpHeaderName("HTTP_HEADER");
    dt.setTdrPropName("propname");
    dt.setTypes(tdrType);

    tdrData.getDynamic().add(dt);

    StaticTdr st = new StaticTdr();
    st.setValue("staticValue");
    st.setTdrPropName("staticName");

    st.setTypes(tdrType);

    tdrData.getStatic().add(st);
    api.setTdr(tdrData);

    api.setAuthentication(auth);

  }
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.