/** * Adds one query string parameter to match on as a Parameter object where the parameter values list can be a list of strings or regular expressions * (for more details of the supported regex syntax see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html) * * @param parameter the Parameter object which can have a values list of strings or regular expressions */ public HttpRequest withQueryStringParameter(Parameter parameter) { this.queryStringParameters.withEntry(parameter); return this; }
/** * Adds one query string parameter to match which can specified using plain strings or regular expressions * (for more details of the supported regex syntax see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html) * * @param name the parameter name * @param values the parameter values which can be a varags of strings or regular expressions */ public HttpRequest withQueryStringParameter(String name, String... values) { this.queryStringParameters.withEntry(name, values); return this; }
/** * Adds one query string parameter to match on or to not match on using the NottableString, each NottableString can either be a positive matching * value, such as string("match"), or a value to not match on, such as not("do not match"), the string values passed to the NottableString * can also be a plain string or a regex (for more details of the supported regex syntax * see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html) * * @param name the parameter name as a NottableString * @param values the parameter values which can be a varags of NottableStrings */ public HttpRequest withQueryStringParameter(NottableString name, NottableString... values) { this.queryStringParameters.withEntry(name, values); return this; }
/** * Adds one query string parameter to match on as a Parameter object where the parameter values list can be a list of strings or regular expressions * (for more details of the supported regex syntax see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html) * * @param parameter the Parameter object which can have a values list of strings or regular expressions */ public HttpRequest withQueryStringParameter(Parameter parameter) { this.queryStringParameters.withEntry(parameter); return this; }
/** * Adds one query string parameter to match which can specified using plain strings or regular expressions * (for more details of the supported regex syntax see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html) * * @param name the parameter name * @param values the parameter values which can be a varags of strings or regular expressions */ public HttpRequest withQueryStringParameter(String name, String... values) { this.queryStringParameters.withEntry(name, values); return this; }
/** * Adds one query string parameter to match on or to not match on using the NottableString, each NottableString can either be a positive matching * value, such as string("match"), or a value to not match on, such as not("do not match"), the string values passed to the NottableString * can also be a plain string or a regex (for more details of the supported regex syntax * see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html) * * @param name the parameter name as a NottableString * @param values the parameter values which can be a varags of NottableStrings */ public HttpRequest withQueryStringParameter(NottableString name, NottableString... values) { this.queryStringParameters.withEntry(name, values); return this; }