pro.chenggang.plugin.springcloud.gateway.context.GatewayContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-cloud-gateway-plugin Show documentation
Show all versions of spring-cloud-gateway-plugin Show documentation
Spring Cloud Gateway Plugin Project
package pro.chenggang.plugin.springcloud.gateway.context;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.http.HttpHeaders;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
/**
* Gateway Context Use Cache Request Content
* @author chenggang
* @date 2019/01/29
*/
@Getter
@Setter
@ToString
public class GatewayContext {
public static final String CACHE_GATEWAY_CONTEXT = "cacheGatewayContext";
/**
* whether read request data
*/
private Boolean readRequestData = false;
/**
* whether read response data
*/
private Boolean readResponseData = false;
/**
* cache json body
*/
private String requestBody;
/**
* cache Response Body
*/
private Object responseBody;
/**
* request headers
*/
private HttpHeaders requestHeaders;
/**
* cache form data
*/
private MultiValueMap formData;
/**
* cache all request data include:form data and query param
*/
private MultiValueMap allRequestData = new LinkedMultiValueMap<>(0);
}