
io.pileworx.rebound.client.definition.Request Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rebound-client-java Show documentation
Show all versions of rebound-client-java Show documentation
Client library for rebound mock server
The newest version!
package io.pileworx.rebound.client.definition;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.util.List;
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Request {
@JsonProperty("method")
private final Method method;
@JsonProperty("path")
private final String path;
@JsonProperty("query")
private final String query;
@JsonProperty("headers")
private final List headers;
@JsonProperty("body")
private final String body;
@JsonCreator
public Request(@JsonProperty("method") Method method,
@JsonProperty("path") String path,
@JsonProperty("query") String query,
@JsonProperty("headers") List headers,
@JsonProperty("body") String body) {
this.method = method;
this.path = path;
this.query = query;
this.headers = headers;
this.body = body;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy