public class HttpMethod extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected static org.apache.log4j.Logger |
logger
The constant logger.
|
| 构造器和说明 |
|---|
HttpMethod() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getUrl(String url,
List<Param> params)
Gets url.
|
static String |
postUrl(String url)
Post url string.
|
static String |
useGetMethod(String url,
List<Param> params,
boolean storeCookie,
boolean useCookie)
Use get method string.
|
static String |
useGetMethod(String url,
List<Param> params,
boolean storeCookie,
boolean useCookie,
int trytimes)
Use get method string.
|
static String |
usePostMethod(String url,
List<Param> params,
boolean storeCookie,
boolean useCookie)
Use post method string.
|
static String |
usePutMethod(String url,
List<Param> params,
boolean storeCookie,
boolean useCookie)
Use put method string.
|
public static String getUrl(String url, List<Param> params)
url - the urlparams - the paramspublic static String useGetMethod(String url, List<Param> params, boolean storeCookie, boolean useCookie)
url - the urlparams - the paramsstoreCookie - the store cookieuseCookie - the use cookiepublic static String useGetMethod(String url, List<Param> params, boolean storeCookie, boolean useCookie, int trytimes)
url - the urlparams - the paramsstoreCookie - the store cookieuseCookie - the use cookietrytimes - the trytimespublic static String usePostMethod(String url, List<Param> params, boolean storeCookie, boolean useCookie)
url - the urlparams - the paramsstoreCookie - the store cookieuseCookie - the use cookieCopyright © 2016. All rights reserved.