public boolean containsEntry(NottableString name, NottableString value) { for (NottableString entryKey : new ArrayList<>(listMultimap.keySet())) { if (entryKey != null && name != null && entryKey.equalsIgnoreCase(name)) { if (listMultimap.get(entryKey) != null && value != null) { for (NottableString entryValue : new ArrayList<>(listMultimap.get(entryKey))) { if (value.equalsIgnoreCase(entryValue)) { return true; } } } } } return false; }
public List<String> getValues(String name) { List<String> values = new ArrayList<>(); for (NottableString key : new ArrayList<>(listMultimap.keySet())) { if (key != null && name != null && key.equalsIgnoreCase(name)) { values.addAll(serialiseNottableString(listMultimap.get(key))); } } return values; }
public K remove(NottableString name) { for (NottableString key : new ArrayList<>(listMultimap.keySet())) { if (key.equalsIgnoreCase(name)) { listMultimap.removeAll(key); } } return (K) this; }
public K remove(String name) { for (NottableString key : new ArrayList<>(listMultimap.keySet())) { if (key.equalsIgnoreCase(name)) { listMultimap.removeAll(key); } } return (K) this; }
HttpResponse httpResponse = response() .withStatusCode(request.getPath().equalsIgnoreCase("/not_found") ? NOT_FOUND.code() : OK.code()) .withHeaders(request.getHeaderList());
public boolean containsEntry(NottableString name, NottableString value) { for (NottableString entryKey : new ArrayList<>(listMultimap.keySet())) { if (entryKey != null && name != null && entryKey.equalsIgnoreCase(name)) { if (listMultimap.get(entryKey) != null && value != null) { for (NottableString entryValue : new ArrayList<>(listMultimap.get(entryKey))) { if (value.equalsIgnoreCase(entryValue)) { return true; } } } } } return false; }
public List<String> getValues(String name) { List<String> values = new ArrayList<>(); for (NottableString key : new ArrayList<>(listMultimap.keySet())) { if (key != null && name != null && key.equalsIgnoreCase(name)) { values.addAll(serialiseNottableString(listMultimap.get(key))); } } return values; }
public K remove(String name) { for (NottableString key : new ArrayList<>(listMultimap.keySet())) { if (key.equalsIgnoreCase(name)) { listMultimap.removeAll(key); } } return (K) this; }
public K remove(NottableString name) { for (NottableString key : new ArrayList<>(listMultimap.keySet())) { if (key.equalsIgnoreCase(name)) { listMultimap.removeAll(key); } } return (K) this; }
HttpResponse httpResponse = response() .withStatusCode(request.getPath().equalsIgnoreCase("/not_found") ? NOT_FOUND.code() : OK.code()) .withHeaders(request.getHeaderList());