Examples of HeaderTransformation


Examples of com.alu.e3.data.model.sub.HeaderTransformation

    return xmlht;
  }

  private static final HeaderTransformation toDataModel(com.alu.e3.prov.restapi.model.HeaderTransformation xmlht){
    HeaderTransformation ht = new HeaderTransformation();

    ht.setAction(HeaderTransformationAction.valueOf(xmlht.getAction().toString()));
    ht.setName(xmlht.getName());
    ht.setProperty(xmlht.getProperty());
    ht.setType(HeaderTransformationType.valueOf(xmlht.getType().toString()));
    ht.setValue(xmlht.getValue());

    return ht;
  }
View Full Code Here

Examples of com.alu.e3.data.model.sub.HeaderTransformation

   */
  private List<HeaderTransformation> getBasicTrans(){
    List<HeaderTransformation> list = new ArrayList<HeaderTransformation>();

    // Create a value, property and remove transformation for request
    HeaderTransformation ht = new HeaderTransformation();
    ht.setAction(HeaderTransformationAction.ADD);
    ht.setName("HEADER-VALUE");
    ht.setValue("REQUEST-VALUE");
    ht.setType(HeaderTransformationType.REQUEST);
    list.add(ht);

    ht = new HeaderTransformation();
    ht.setAction(HeaderTransformationAction.ADD);
    ht.setName("HEADER-PROP");
    ht.setProperty("PROPERTY1");
    ht.setType(HeaderTransformationType.REQUEST);
    list.add(ht);

    ht = new HeaderTransformation();
    ht.setAction(HeaderTransformationAction.ADD);
    ht.setName("HEADER-PROP-NULL");
    ht.setProperty("PROPERTY3");
    ht.setType(HeaderTransformationType.REQUEST);
    list.add(ht);

    ht = new HeaderTransformation();
    ht.setAction(HeaderTransformationAction.ADD);
    ht.setName("HEADER-EMPTY");
    ht.setType(HeaderTransformationType.REQUEST);
    list.add(ht);

    ht = new HeaderTransformation();
    ht.setAction(HeaderTransformationAction.REMOVE);
    ht.setName("HEADER-REMOVE1");
    ht.setType(HeaderTransformationType.REQUEST);
    list.add(ht);

    ht = new HeaderTransformation();
    ht.setAction(HeaderTransformationAction.REMOVE);
    ht.setName("HEADER-REMOVE-NULL");
    ht.setType(HeaderTransformationType.REQUEST);
    list.add(ht);

    // Create a value, property and remove transformation for the response
    ht = new HeaderTransformation();
    ht.setAction(HeaderTransformationAction.ADD);
    ht.setName("HEADER-VALUE");
    ht.setValue("RESPONSE-VALUE");
    ht.setType(HeaderTransformationType.RESPONSE);
    list.add(ht);

    ht = new HeaderTransformation();
    ht.setAction(HeaderTransformationAction.ADD);
    ht.setName("HEADER-PROP");
    ht.setProperty("PROPERTY2");
    ht.setType(HeaderTransformationType.RESPONSE);
    list.add(ht);

    ht = new HeaderTransformation();
    ht.setAction(HeaderTransformationAction.REMOVE);
    ht.setName("HEADER-REMOVE2");
    ht.setType(HeaderTransformationType.RESPONSE);
    list.add(ht);

    ht = new HeaderTransformation();
    ht.setAction(HeaderTransformationAction.REMOVE);
    ht.setName("HEADER-REMOVE-NULL2");
    ht.setType(HeaderTransformationType.RESPONSE);
    list.add(ht);

    ht = new HeaderTransformation();
    ht.setAction(HeaderTransformationAction.ADD);
    ht.setName("HEADER-PROP-NULL");
    ht.setProperty("PROPERTY3");
    ht.setType(HeaderTransformationType.RESPONSE);
    list.add(ht);

    ht = new HeaderTransformation();
    ht.setAction(HeaderTransformationAction.ADD);
    ht.setName("HEADER-EMPTY2");
    ht.setType(HeaderTransformationType.RESPONSE);
    list.add(ht);

    return list;
  }
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.