/** * Constructs a new multivalued hash map with the same mappings as the * specified {@link MultivaluedMap }. The {@link List} instances holding * the values of each key are created anew instead of being reused. * * @param map the multivalued map whose mappings are to be placed in this * multivalued map. * @throws NullPointerException if the specified map is {@code null} */ public MultivaluedHashMap(MultivaluedMap<? extends K, ? extends V> map) { this(); putAll(map); }
/** * Constructs a new multivalued hash map with the same mappings as the * specified {@link MultivaluedMap }. The {@link List} instances holding * the values of each key are created anew instead of being reused. * * @param map the multivalued map whose mappings are to be placed in this * multivalued map. * @throws NullPointerException if the specified map is {@code null} */ public MultivaluedHashMap(MultivaluedMap<? extends K, ? extends V> map) { this(); putAll(map); }
/** * Constructs a new multivalued hash map with the same mappings as the * specified {@link MultivaluedMap }. The {@link List} instances holding * the values of each key are created anew instead of being reused. * * @param map the multivalued map whose mappings are to be placed in this * multivalued map. * @throws NullPointerException if the specified map is {@code null} */ public MultivaluedHashMap(MultivaluedMap<? extends K, ? extends V> map) { this(); putAll(map); }
/** * Constructs a new multivalued hash map with the same mappings as the * specified {@link MultivaluedMap }. The {@link List} instances holding * the values of each key are created anew instead of being reused. * * @param map the multivalued map whose mappings are to be placed in this * multivalued map. * @throws NullPointerException if the specified map is {@code null} */ public MultivaluedHashMap(MultivaluedMap<? extends K, ? extends V> map) { this(); putAll(map); }
/** * Constructs a new multivalued hash map with the same mappings as the * specified {@link MultivaluedMap }. The {@link List} instances holding * the values of each key are created anew instead of being reused. * * @param map the multivalued map whose mappings are to be placed in this * multivalued map. * @throws NullPointerException if the specified map is {@code null} */ public MultivaluedHashMap(MultivaluedMap<? extends K, ? extends V> map) { this(); putAll(map); }
/** * Constructs a new multivalued hash map with the same mappings as the * specified {@link MultivaluedMap }. The {@link List} instances holding * the values of each key are created anew instead of being reused. * * @param map the multivalued map whose mappings are to be placed in this * multivalued map. * @throws NullPointerException if the specified map is {@code null} */ public MultivaluedHashMap(MultivaluedMap<? extends K, ? extends V> map) { this(); putAll(map); }
public MultivaluedHashMap(MultivaluedMap<? extends K, ? extends V> map) { this(); putAll(map); }
/** * Constructs a new multivalued hash map with the same mappings as the * specified {@link MultivaluedMap }. The {@link List} instances holding * the values of each key are created anew instead of being reused. * * @param map the multivalued map whose mappings are to be placed in this * multivalued map. * @throws NullPointerException if the specified map is {@code null} */ public MultivaluedHashMap(MultivaluedMap<? extends K, ? extends V> map) { this(); putAll(map); }
/** * Constructs a new multivalued hash map with the same mappings as the * specified {@link MultivaluedMap }. The {@link List} instances holding * the values of each key are created anew instead of being reused. * * @param map the multivalued map whose mappings are to be placed in this * multivalued map. * @throws NullPointerException if the specified map is {@code null} */ public MultivaluedHashMap(MultivaluedMap<? extends K, ? extends V> map) { this(); putAll(map); }
public MultivaluedHashMap(MultivaluedMap<? extends K, ? extends V> map) { this(); putAll(map); }
/** * Constructs a new multivalued hash map with the same mappings as the * specified {@link MultivaluedMap }. The {@link List} instances holding * the values of each key are created anew instead of being reused. * * @param map the multivalued map whose mappings are to be placed in this * multivalued map. * @throws NullPointerException if the specified map is {@code null} */ public MultivaluedHashMap(MultivaluedMap<? extends K, ? extends V> map) { this(); putAll(map); }
public MultivaluedHashMap(MultivaluedMap<? extends K, ? extends V> map) { this(); putAll(map); }
public MultivaluedHashMap(MultivaluedMap<? extends K, ? extends V> map) { this(); putAll(map); }
/** * Constructs a new multivalued hash map with the same mappings as the * specified {@link MultivaluedMap }. The {@link List} instances holding * the values of each key are created anew instead of being reused. * * @param map the multivalued map whose mappings are to be placed in this * multivalued map. * @throws NullPointerException if the specified map is {@code null} */ public MultivaluedHashMap(MultivaluedMap<? extends K, ? extends V> map) { this(); putAll(map); }
public MultivaluedHashMap(MultivaluedMap<? extends K, ? extends V> map) { this(); putAll(map); }
public MultivaluedMap<String, String> getHeaders() { final MultivaluedHashMap<String, String> toReturn = new MultivaluedHashMap<String, String>(); toReturn.putAll(headers); return toReturn; }
public MultivaluedMap<String, String> getHeaders() { final MultivaluedHashMap<String, String> toReturn = new MultivaluedHashMap<String, String>(); toReturn.putAll(headers); return toReturn; }
if (parameters != null && !parameters.isEmpty()){ MultivaluedHashMap<String, String> parametersToClean = new MultivaluedHashMap<String, String>(); parametersToClean.putAll(parameters); ESAPIHelper.cleanParams(parametersToClean); UriBuilder query = request.getUriInfo().getRequestUriBuilder().replaceQuery("");
private MultivaluedMap<String, String> extractedParameters() { if (parameters == null) { MultivaluedHashMap<String, String> multivaluedHashMap = new MultivaluedHashMap<>(); // efficient multivaluedHashMap.putAll(requestContext.getUriInfo().getQueryParameters()); parameters = multivaluedHashMap; if (MediaType.APPLICATION_FORM_URLENCODED_TYPE.isCompatible(requestContext.getMediaType())) { readAndResetEntityStream(stream -> { try { Form form = providers.getMessageBodyReader(Form.class, Form.class, new Annotation[0], MediaType.APPLICATION_FORM_URLENCODED_TYPE).readFrom(Form.class, Form.class, new Annotation[0], MediaType.APPLICATION_FORM_URLENCODED_TYPE, requestContext.getHeaders(), stream); form.asMap().forEach(parameters::addAll); return null; } catch (IOException e) { throw new TechnicalException(e); } }); } } return parameters; }