Package com.chargebee.internal
Class HttpUtil
java.lang.Object
com.chargebee.internal.HttpUtil
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Resultstatic ListResultstatic Resultstatic Resultstatic Resultstatic Resultstatic StringtoQueryStr(Params map) static StringtoQueryStr(Params map, boolean isListReq)
-
Field Details
-
CONTENT_TYPE_HEADER_NAME
- See Also:
-
-
Constructor Details
-
HttpUtil
public HttpUtil()
-
-
Method Details
-
get
public static Result get(String url, Params params, Map<String, String> headers, Environment env) throws IOException- Throws:
IOException
-
getList
public static ListResult getList(String url, Params params, Map<String, String> headers, Environment env) throws IOException- Throws:
IOException
-
post
public static Result post(String url, Params params, Map<String, String> headers, Environment env, boolean isIdempotent) throws IOException- Throws:
IOException
-
post
public static Result post(String url, Params params, Map<String, String> headers, Environment env) throws IOException- Throws:
IOException
-
post
public static Result post(String url, String content, Map<String, String> headers, Environment env) throws IOException- Throws:
IOException
-
post
public static Result post(String url, String content, Map<String, String> headers, Environment env, boolean isIdempotent) throws IOException- Throws:
IOException
-
toQueryStr
-
toQueryStr
-