List of usage examples for org.springframework.util CollectionUtils unmodifiableMultiValueMap
@SuppressWarnings("unchecked") public static <K, V> MultiValueMap<K, V> unmodifiableMultiValueMap( MultiValueMap<? extends K, ? extends V> map)
From source file:org.springframework.http.server.reactive.AbstractServerHttpRequest.java
@Override public MultiValueMap<String, String> getQueryParams() { if (this.queryParams == null) { this.queryParams = CollectionUtils.unmodifiableMultiValueMap(initQueryParams()); }/*from ww w.ja v a 2s . c o m*/ return this.queryParams; }
From source file:org.springframework.http.server.reactive.AbstractServerHttpRequest.java
@Override public MultiValueMap<String, HttpCookie> getCookies() { if (this.cookies == null) { this.cookies = CollectionUtils.unmodifiableMultiValueMap(initCookies()); }/*w ww. j av a 2s . c o m*/ return this.cookies; }
From source file:org.springframework.http.server.reactive.AbstractServerHttpResponse.java
@Override public MultiValueMap<String, ResponseCookie> getCookies() { return (this.state.get() == State.COMMITTED ? CollectionUtils.unmodifiableMultiValueMap(this.cookies) : this.cookies); }
From source file:org.springframework.messaging.handler.invocation.reactive.AbstractMethodMessageHandler.java
/** * Return a read-only multi-value map with a direct lookup of mappings, * (e.g. for non-pattern destinations).// w w w . j av a 2s. com */ public MultiValueMap<String, T> getDestinationLookup() { return CollectionUtils.unmodifiableMultiValueMap(this.destinationLookup); }