public class RequestUtil extends Object
RequestBuilder| Modifier and Type | Field and Description | 
|---|---|
| static String | DEFAULT_ENDPOINTdefault endpoints for relative request. | 
| Constructor and Description | 
|---|
| RequestUtil() | 
| Modifier and Type | Method and Description | 
|---|---|
| static String | encode(String content)Encode. | 
| static boolean | isRelative(com.squareup.okhttp.Request request)Checks if is relative. | 
| static Map<String,Object> | omit(Map<String,Object> params,
    String... toOmit)Return a copy of a  Mapexcluding the given key, or array of keys. | 
| static Map<String,Object> | pick(Map<String,Object> params,
    String... toPick)Return a copy of a  Mapwith only the specified given key, or array of keys. | 
| static String | replaceEndPoint(String url,
               String endPoint)Replace the url endpoint (schema + host + port) with the given end point. | 
public static final String DEFAULT_ENDPOINT
WatsonService with the
 service endpoint.public static String encode(String content)
content - the contentpublic static boolean isRelative(com.squareup.okhttp.Request request)
request - the requestpublic 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 omitpublic static Map<String,Object> pick(Map<String,Object> params, String... toPick)
Map with only the specified given key, or array of keys.params - the parameterstoPick - the keys to pickCopyright © 2015–2016. All rights reserved.