public class PcHttpUtils extends Object
| Constructor and Description |
|---|
PcHttpUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addHeaders(com.ning.http.client.AsyncHttpClient.BoundRequestBuilder builder,
Map<String,String> headerMap)
Adds the headers.
|
static boolean |
isUrlValid(String url)
currently not to use MalformedURLException or MalformedURLException as
our logic includes add HTTP :// etc Assuming not null .
|
static void |
replaceHttpHeaderMapNodeSpecific(Map<String,String> httpHeaderMap,
Map<String,String> requestParameters)
!!!! ASSUMPTION: all VAR exists in HTTP Header must of type:
APIVARREPLACE_NAME_PREFIX_HTTP_HEADER
20140310 This may be costly (O(n^2)) of the updated related # of headers;
# of parameters in the requests.
|
public static boolean isUrlValid(String url)
url - the urlpublic static void replaceHttpHeaderMapNodeSpecific(Map<String,String> httpHeaderMap, Map<String,String> requestParameters)
httpHeaderMap - the http header maprequestParameters - the request parametersCopyright © 2015–2017 eBay. All rights reserved.