- java.lang.Object
-
- org.redkale.net.http.HttpParameters
-
- 所有已实现的接口:
Serializable
,RestParams
public class HttpParameters extends Object implements RestParams, Serializable
- 作者:
- zhangjx
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 限定符 构造器 说明 protected
HttpParameters()
-
方法概要
-
-
-
方法详细资料
-
create
public static HttpParameters create()
-
of
public static HttpParameters of(String... items)
-
ofValid
public static HttpParameters ofValid(Map<String,String> map)
无需校验参数合法性- 参数:
map
- 参数- 返回:
- HttpParameters
-
get
public String get(String name)
- 指定者:
get
在接口中RestParams
-
get
public String get(String name, String defaultValue)
- 指定者:
get
在接口中RestParams
-
forEach
public void forEach(BiConsumer<String,String> consumer)
- 指定者:
forEach
在接口中RestParams
-
names
public String[] names()
- 指定者:
names
在接口中RestParams
-
contains
public boolean contains(String name)
- 指定者:
contains
在接口中RestParams
-
putAll
public HttpParameters putAll(HttpParameters params)
-
put
public HttpParameters put(Map<String,String> values)
-
put
public HttpParameters put(String name, String value)
-
put
public HttpParameters put(String name, TextConvert convert, Object value)
-
put
public HttpParameters put(String name, Object value)
-
put
public HttpParameters put(String name, boolean value)
-
put
public HttpParameters put(String name, short value)
-
put
public HttpParameters put(String name, int value)
-
put
public HttpParameters put(String name, float value)
-
put
public HttpParameters put(String name, long value)
-
put
public HttpParameters put(String name, double value)
-
put
public HttpParameters put(String name, BigInteger value)
-
remove
public HttpParameters remove(String name)
-
map
public Map<String,String> map()
- 指定者:
map
在接口中RestParams
-
isEmpty
public boolean isEmpty()
-
clear
public HttpParameters clear()
-
-