| Constructor and Description |
|---|
RequestUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
formatQueryString(List<? extends org.apache.http.NameValuePair> parameters,
String encoding)
Returns a String that is suitable for use as an
application/x-www-form-urlencoded list of parameters in an
HTTP PUT or HTTP POST. |
static Map<String,Object> |
omit(Map<String,Object> params,
String... toOmit)
Return a copy of a
Map excluding the given key, or array of keys. |
static Map<String,Object> |
pick(Map<String,Object> params,
String... toPick)
Return a copy of a
Map with only the specified given key, or array of keys. |
public static String formatQueryString(List<? extends org.apache.http.NameValuePair> parameters, String encoding)
application/x-www-form-urlencoded list of parameters in an
HTTP PUT or HTTP POST. It can also be used as query string in a GET
requestparameters - The parameters to include.encoding - The encoding to use.public static Map<String,Object> omit(Map<String,Object> params, String... toOmit)
Map excluding the given key, or array of keys.params - the parameterstoOmit - the keys to omitCopyright © 2015. All rights reserved.