org.zalando.riptide.IO Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of riptide-core Show documentation
Show all versions of riptide-core Show documentation
Client side response routing
package org.zalando.riptide;
import com.google.gag.annotation.remark.ThisWouldBeOneLineIn;
import org.springframework.util.MultiValueMap;
import java.util.List;
import java.util.Map;
interface IO extends RequestExecution {
@ThisWouldBeOneLineIn(
language = "Spring 5",
toWit = "target.addAll(toMultiValueMap(source))")
default void copyTo(
final Map> source,
final MultiValueMap target) {
source.forEach((name, values) ->
values.forEach(value ->
target.add(name, value)));
}
}