public String apply(NottableString input) { return input.getValue(); } }));
public static NottableString string(String value, Boolean not) { return new NottableString(value, not); }
public K withEntry(String name, String... values) { if (ArrayUtils.isNotEmpty(values)) { listMultimap.putAll(string(name), deserializeNottableStrings(values)); } return (K) this; }
public boolean equalsIgnoreCase(Object other) { return equals(other, true); }
public void addValues(List<String> values) { addNottableValues(deserializeNottableStrings(values)); }
public boolean matches(final HttpRequest context, NottableString matched) { boolean result = false; if (matches(matcher.getValue(), matched.getValue(), false)) { result = true; } if (!result) { mockServerLogger.trace(context, "Failed to match [{}] with [{}]", matched, this.matcher); } return matched.isNot() != (matcher.isNot() != (not != result)); }
public RegexStringMatcher(MockServerLogger mockServerLogger, String matcher) { this.mockServerLogger = mockServerLogger; this.matcher = string(matcher); }
public K replaceEntry(String name, String... values) { if (ArrayUtils.isNotEmpty(values)) { remove(name); listMultimap.putAll(string(name), deserializeNottableStrings(values)); } return (K) this; }
public boolean equalsIgnoreCase(Object other) { return equals(other, true); }
public void addValues(List<String> values) { addNottableValues(deserializeNottableStrings(values)); }
public String apply(NottableString input) { return input.getValue(); } }));
public boolean matches(final HttpRequest context, NottableString matched) { boolean result = false; if (matches(matcher.getValue(), matched.getValue(), false)) { result = true; } if (!result) { mockServerLogger.trace(context, "Failed to match [{}] with [{}]", matched, this.matcher); } return matched.isNot() != (matcher.isNot() != (not != result)); }