All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.linkedin.restli.common.multiplexer.IndividualResponseMap Maven / Gradle / Ivy

Go to download

Pegasus is a framework for building robust, scalable service architectures using dynamic discovery and simple asychronous type-checked REST + JSON APIs.

There is a newer version: 27.7.18
Show newest version

package com.linkedin.restli.common.multiplexer;

import java.util.List;
import java.util.Map;
import javax.annotation.Generated;
import com.linkedin.data.DataMap;
import com.linkedin.data.schema.MapDataSchema;
import com.linkedin.data.schema.PathSpec;
import com.linkedin.data.template.DataTemplateUtil;
import com.linkedin.data.template.WrappingMapTemplate;

@Generated(value = "com.linkedin.pegasus.generator.JavaCodeUtil", comments = "Rest.li Data Template. Generated from /Users/mnchen/dev/pegasus_trunk/pegasus/restli-common/src/main/pegasus/com/linkedin/restli/common/multiplexer/MultiplexedResponseContent.pdsc.", date = "Tue Oct 03 15:15:24 PDT 2017")
public class IndividualResponseMap
    extends WrappingMapTemplate
{

    private final static MapDataSchema SCHEMA = ((MapDataSchema) DataTemplateUtil.parseSchema("{\"type\":\"map\",\"values\":{\"type\":\"record\",\"name\":\"IndividualResponse\",\"namespace\":\"com.linkedin.restli.common.multiplexer\",\"doc\":\"Individual HTTP response within a multiplexed response\",\"fields\":[{\"name\":\"status\",\"type\":\"int\",\"doc\":\"HTTP status code\"},{\"name\":\"headers\",\"type\":{\"type\":\"map\",\"values\":\"string\"},\"doc\":\"HTTP headers\",\"default\":{}},{\"name\":\"body\",\"type\":{\"type\":\"record\",\"name\":\"IndividualBody\",\"doc\":\"Represents content that may be in the body of an individual request / response\",\"fields\":[]},\"doc\":\"Response body\",\"optional\":true}]}}"));

    public IndividualResponseMap() {
        this(new DataMap());
    }

    public IndividualResponseMap(int initialCapacity) {
        this(new DataMap(initialCapacity));
    }

    public IndividualResponseMap(int initialCapacity, float loadFactor) {
        this(new DataMap(initialCapacity, loadFactor));
    }

    public IndividualResponseMap(Map m) {
        this(newDataMapOfSize(m.size()));
        putAll(m);
    }

    public IndividualResponseMap(DataMap data) {
        super(data, SCHEMA, IndividualResponse.class);
    }

    @Override
    public IndividualResponseMap clone()
        throws CloneNotSupportedException
    {
        return ((IndividualResponseMap) super.clone());
    }

    @Override
    public IndividualResponseMap copy()
        throws CloneNotSupportedException
    {
        return ((IndividualResponseMap) super.copy());
    }

    public static class Fields
        extends PathSpec
    {


        public Fields(List path, String name) {
            super(path, name);
        }

        public Fields() {
            super();
        }

        public com.linkedin.restli.common.multiplexer.IndividualResponse.Fields values() {
            return new com.linkedin.restli.common.multiplexer.IndividualResponse.Fields(getPathComponents(), PathSpec.WILDCARD);
        }

    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy