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

org.zalando.riptide.DefaultRequestArguments Maven / Gradle / Ivy

package org.zalando.riptide;

import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMultimap;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Singular;
import lombok.experimental.FieldDefaults;
import lombok.experimental.Wither;
import org.springframework.http.HttpMethod;

import java.net.URI;

@Getter
@FieldDefaults(makeFinal = true, level = AccessLevel.PRIVATE)
@AllArgsConstructor
public final class DefaultRequestArguments implements RequestArguments {

    @Wither
    HttpMethod method;

    @Wither
    URI baseUrl;

    @Wither
    UrlResolution urlResolution;

    @Wither
    String uriTemplate;

    @Wither
    @Singular
    ImmutableList uriVariables;

    @Wither
    URI uri;

    @Wither
    ImmutableMultimap queryParams;

    @Wither
    URI requestUri;

    @Wither
    ImmutableMultimap headers;

    @Wither
    Object body;

}