Example usage for org.springframework.mock.http.client.reactive MockClientHttpRequest getCookies

List of usage examples for org.springframework.mock.http.client.reactive MockClientHttpRequest getCookies

Introduction

In this page you can find the example usage for org.springframework.mock.http.client.reactive MockClientHttpRequest getCookies.

Prototype

@Override
    public MultiValueMap<String, HttpCookie> getCookies() 

Source Link

Usage

From source file:org.springframework.test.web.reactive.server.HttpHandlerConnector.java

private ServerHttpRequest adaptRequest(MockClientHttpRequest request, Publisher<DataBuffer> body) {
    HttpMethod method = request.getMethod();
    URI uri = request.getURI();/*w w  w.  j  a v  a 2 s.  c om*/
    HttpHeaders headers = request.getHeaders();
    MultiValueMap<String, HttpCookie> cookies = request.getCookies();
    return MockServerHttpRequest.method(method, uri).headers(headers).cookies(cookies).body(body);
}