@Override public MultiValueMap<String, ResponseCookie> getCookies() { MultiValueMap<String, ResponseCookie> result = new LinkedMultiValueMap<>(); List<String> cookieHeader = getHeaders().get(HttpHeaders.SET_COOKIE); if (cookieHeader != null) { cookieHeader.forEach(header -> { HttpCookie.parse(header) .forEach(cookie -> result.add(cookie.getName(), ResponseCookie.from(cookie.getName(), cookie.getValue()) .domain(cookie.getDomain()) .path(cookie.getPath()) .maxAge(cookie.getMaxAge()) .secure(cookie.getSecure()) .httpOnly(cookie.isHttpOnly()) .build())); }); } return CollectionUtils.unmodifiableMultiValueMap(result); }
@Override public MultiValueMap<String, ResponseCookie> getCookies() { MultiValueMap<String, ResponseCookie> result = new LinkedMultiValueMap<>(); List<String> cookieHeader = getHeaders().get(HttpHeaders.SET_COOKIE); if (cookieHeader != null) { cookieHeader.forEach(header -> { HttpCookie.parse(header) .forEach(cookie -> result.add(cookie.getName(), ResponseCookie.from(cookie.getName(), cookie.getValue()) .domain(cookie.getDomain()) .path(cookie.getPath()) .maxAge(cookie.getMaxAge()) .secure(cookie.getSecure()) .httpOnly(cookie.isHttpOnly()) .build())); }); } return CollectionUtils.unmodifiableMultiValueMap(result); }
@Override public MultiValueMap<String, ResponseCookie> getCookies() { MultiValueMap<String, ResponseCookie> result = new LinkedMultiValueMap<>(); List<String> cookieHeader = getHeaders().get(HttpHeaders.SET_COOKIE); if (cookieHeader != null) { cookieHeader.forEach(header -> { HttpCookie.parse(header) .forEach(cookie -> result.add(cookie.getName(), ResponseCookie.from(cookie.getName(), cookie.getValue()) .domain(cookie.getDomain()) .path(cookie.getPath()) .maxAge(cookie.getMaxAge()) .secure(cookie.getSecure()) .httpOnly(cookie.isHttpOnly()) .build())); }); } return CollectionUtils.unmodifiableMultiValueMap(result); }
@Override public MultiValueMap<String, ResponseCookie> getCookies() { MultiValueMap<String, ResponseCookie> result = new LinkedMultiValueMap<>(); List<String> cookieHeader = getHeaders().get(HttpHeaders.SET_COOKIE); if (cookieHeader != null) { cookieHeader.forEach(header -> { HttpCookie.parse(header) .forEach(cookie -> result.add(cookie.getName(), ResponseCookie.from(cookie.getName(), cookie.getValue()) .domain(cookie.getDomain()) .path(cookie.getPath()) .maxAge(cookie.getMaxAge()) .secure(cookie.getSecure()) .httpOnly(cookie.isHttpOnly()) .build())); }); } return CollectionUtils.unmodifiableMultiValueMap(result); }