public class HttpUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpUtil.Method |
| Constructor and Description |
|---|
HttpUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Result |
get(String url,
Params params,
Map<String,String> headers,
Environment env) |
static ListResult |
getList(String url,
Params params,
Map<String,String> headers,
Environment env) |
static Result |
post(String url,
Params params,
Map<String,String> headers,
Environment env) |
static String |
toQueryStr(Params map) |
static String |
toQueryStr(Params map,
boolean isListReq) |
public static Result get(String url, Params params, Map<String,String> headers, Environment env) throws IOException
IOExceptionpublic static ListResult getList(String url, Params params, Map<String,String> headers, Environment env) throws IOException
IOExceptionpublic static Result post(String url, Params params, Map<String,String> headers, Environment env) throws IOException
IOExceptionCopyright © 2023 ChargeBee. All rights reserved.