Search in sources :

Example 1 with MultiValueMap

use of io.gravitee.common.util.MultiValueMap in project gravitee-gateway by gravitee-io.

the class VertxHttpServerRequest method parameters.

@Override
public MultiValueMap<String, String> parameters() {
    if (queryParameters == null) {
        MultiMap parameters = httpServerRequest.params();
        queryParameters = new LinkedMultiValueMap<>(parameters.size());
        for (Map.Entry<String, String> param : httpServerRequest.params()) {
            queryParameters.put(param.getKey(), parameters.getAll(param.getKey()));
        }
    }
    return queryParameters;
}
Also used : MultiMap(io.vertx.core.MultiMap) MultiValueMap(io.gravitee.common.util.MultiValueMap) MultiMap(io.vertx.core.MultiMap) LinkedMultiValueMap(io.gravitee.common.util.LinkedMultiValueMap) Map(java.util.Map)

Aggregations

LinkedMultiValueMap (io.gravitee.common.util.LinkedMultiValueMap)1 MultiValueMap (io.gravitee.common.util.MultiValueMap)1 MultiMap (io.vertx.core.MultiMap)1 Map (java.util.Map)1