@Override public BodyBuilder cookies(MultiValueMap<String, HttpCookie> cookies) { this.cookies.putAll(cookies); return this; }
@Override public void putAll(Map<? extends String, ? extends List<String>> map) { this.headers.putAll(map); }
@Override public void putAll(Map<? extends String, ? extends List<String>> map) { this.headers.putAll(map); }
private MultiValueMap<String, String> initCookies() { if (CollectionUtils.isEmpty(this.cookies)) { return (defaultCookies != null ? defaultCookies : new LinkedMultiValueMap<>()); } else if (CollectionUtils.isEmpty(defaultCookies)) { return this.cookies; } else { MultiValueMap<String, String> result = new LinkedMultiValueMap<>(); result.putAll(defaultCookies); result.putAll(this.cookies); return result; } }
public void putAll(Map<? extends String, ? extends List<String>> m) { parameters.putAll(m); }
@Override public BodyBuilder cookies(MultiValueMap<String, HttpCookie> cookies) { this.cookies.putAll(cookies); return this; }
/** * Set the query parameter values overriding all existing query values. * @param params the query parameter name * @return this UriComponentsBuilder * @since 4.2 */ @Override public UriComponentsBuilder replaceQueryParams(@Nullable MultiValueMap<String, String> params) { this.queryParams.clear(); if (params != null) { this.queryParams.putAll(params); } return this; }
/** * Create a deep copy of the given UriComponentsBuilder. * @param other the other builder to copy from * @since 4.1.3 */ protected UriComponentsBuilder(UriComponentsBuilder other) { this.scheme = other.scheme; this.ssp = other.ssp; this.userInfo = other.userInfo; this.host = other.host; this.port = other.port; this.pathBuilder = other.pathBuilder.cloneBuilder(); this.queryParams.putAll(other.queryParams); this.fragment = other.fragment; this.encodeTemplate = other.encodeTemplate; this.charset = other.charset; }
/** * Set the query parameter values overriding all existing query values. * @param params the query parameter name * @return this UriComponentsBuilder * @since 4.2 */ @Override public UriComponentsBuilder replaceQueryParams(@Nullable MultiValueMap<String, String> params) { this.queryParams.clear(); if (params != null) { this.queryParams.putAll(params); } return this; }
/** * Create a deep copy of the given UriComponentsBuilder. * @param other the other builder to copy from * @since 4.1.3 */ protected UriComponentsBuilder(UriComponentsBuilder other) { this.scheme = other.scheme; this.ssp = other.ssp; this.userInfo = other.userInfo; this.host = other.host; this.port = other.port; this.pathBuilder = other.pathBuilder.cloneBuilder(); this.queryParams.putAll(other.queryParams); this.fragment = other.fragment; this.encodeTemplate = other.encodeTemplate; this.charset = other.charset; }
return Collections.emptyMap(); map.putAll(mapForPathVariable);
return Collections.emptyMap(); map.putAll(mapForPathVariable);
private ClientHttpResponse adaptResponse(MockServerHttpResponse response, Flux<DataBuffer> body) { HttpStatus status = Optional.ofNullable(response.getStatusCode()).orElse(HttpStatus.OK); MockClientHttpResponse clientResponse = new MockClientHttpResponse(status); clientResponse.getHeaders().putAll(response.getHeaders()); clientResponse.getCookies().putAll(response.getCookies()); clientResponse.setBody(body); return clientResponse; }
return Collections.emptyMap(); map.putAll(mapForPathVariable);
private MultiValueMap<String, String> getParametersForTokenRequest(ResourceOwnerPasswordResourceDetails resource, AccessTokenRequest request) { MultiValueMap<String, String> form = new LinkedMultiValueMap<String, String>(); form.set("grant_type", "password"); form.set("username", resource.getUsername()); form.set("password", resource.getPassword()); form.putAll(request); if (resource.isScoped()) { StringBuilder builder = new StringBuilder(); List<String> scope = resource.getScope(); if (scope != null) { Iterator<String> scopeIt = scope.iterator(); while (scopeIt.hasNext()) { builder.append(scopeIt.next()); if (scopeIt.hasNext()) { builder.append(' '); } } } form.set("scope", builder.toString()); } return form; }
final MultiValueMap<String, Object> formParams = new LinkedMultiValueMap<String, Object>(); queryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("multi".toUpperCase()), "status", status));
final MultiValueMap<String, Object> formParams = new LinkedMultiValueMap<String, Object>(); queryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("multi".toUpperCase()), "tags", tags));
MultiValueMap<String, String> map = (MultiValueMap<String, String>) headerAccessor.getHeader(name); if (map != null) { headers.putAll(map);
form.putAll(getParametersForAuthorizeRequest(resource, request));