com.ibm.og.json.OperationConfig.java Source code

Java tutorial

Introduction

Here is the source code for com.ibm.og.json.OperationConfig.java

Source

/* Copyright (c) IBM Corporation 2016. All Rights Reserved.
 * Project name: Object Generator
 * This project is licensed under the Apache License 2.0, see LICENSE.
 */

package com.ibm.og.json;

import java.util.Map;

import com.ibm.og.api.BodySource;
import com.google.common.collect.Maps;

public class OperationConfig {
    public double weight;
    public SelectionConfig<String> host;
    public ObjectConfig object;
    public Map<String, SelectionConfig<String>> headers;
    public Map<String, String> parameters;
    public BodySource body;
    public ContainerConfig container;

    public OperationConfig(final double weight) {
        this();
        this.weight = weight;
    }

    public OperationConfig() {
        this.weight = 0.0;
        this.host = null;
        this.object = new ObjectConfig();
        this.headers = Maps.newLinkedHashMap();
        this.parameters = Maps.newLinkedHashMap();
        this.body = BodySource.NONE;
        this.container = new ContainerConfig();
    }
}