- java.lang.Object
-
- org.redkale.net.http.HttpHeaders
-
- 所有已实现的接口:
Serializable
,RestHeaders
public class HttpHeaders extends Object implements RestHeaders, Serializable
Http Header Object详情见: https://redkale.org
- 从以下版本开始:
- 2.8.0
- 作者:
- zhangjx
- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 protected LinkedHashMap<String,Serializable>
map
-
构造器概要
构造器 限定符 构造器 说明 protected
HttpHeaders()
-
方法概要
-
-
-
字段详细资料
-
map
protected LinkedHashMap<String,Serializable> map
-
-
方法详细资料
-
create
public static HttpHeaders create()
-
of
public static HttpHeaders of(String... items)
-
ofValid
public static HttpHeaders ofValid(Map<String,Serializable> map)
无需校验参数合法性- 参数:
map
- 参数- 返回:
- HttpHeaders
-
firstValue
public String firstValue(String name)
- 指定者:
firstValue
在接口中RestHeaders
-
firstValue
public String firstValue(String name, String defaultValue)
- 指定者:
firstValue
在接口中RestHeaders
-
listValue
public List<String> listValue(String name)
- 指定者:
listValue
在接口中RestHeaders
-
forEach
public void forEach(BiConsumer<String,String> consumer)
- 指定者:
forEach
在接口中RestHeaders
-
forEach
public void forEach(Predicate<String> filter, BiConsumer<String,String> consumer)
- 指定者:
forEach
在接口中RestHeaders
-
names
public String[] names()
- 指定者:
names
在接口中RestHeaders
-
contains
public boolean contains(String name)
- 指定者:
contains
在接口中RestHeaders
-
addAll
public HttpHeaders addAll(HttpHeaders header)
-
add
public HttpHeaders add(Map<String,String> values)
-
add
public HttpHeaders add(String name, String value)
-
add
public HttpHeaders add(String name, List<String> value)
-
add
public HttpHeaders add(String name, TextConvert convert, Object value)
-
add
public HttpHeaders add(String name, Object value)
-
add
public HttpHeaders add(String name, boolean value)
-
add
public HttpHeaders add(String name, short value)
-
add
public HttpHeaders add(String name, int value)
-
add
public HttpHeaders add(String name, float value)
-
add
public HttpHeaders add(String name, long value)
-
add
public HttpHeaders add(String name, double value)
-
add
public HttpHeaders add(String name, BigInteger value)
-
setAll
public HttpHeaders setAll(HttpHeaders header)
-
set
public HttpHeaders set(Map<String,String> values)
-
set
public HttpHeaders set(String name, String value)
-
set
public HttpHeaders set(String name, List<String> value)
-
set
public HttpHeaders set(String name, TextConvert convert, Object value)
-
set
public HttpHeaders set(String name, Object value)
-
set
public HttpHeaders set(String name, boolean value)
-
set
public HttpHeaders set(String name, short value)
-
set
public HttpHeaders set(String name, int value)
-
set
public HttpHeaders set(String name, float value)
-
set
public HttpHeaders set(String name, long value)
-
set
public HttpHeaders set(String name, double value)
-
set
public HttpHeaders set(String name, BigInteger value)
-
remove
public HttpHeaders remove(String name)
-
map
public Map<String,Serializable> map()
- 指定者:
map
在接口中RestHeaders
-
isEmpty
public boolean isEmpty()
-
clear
public HttpHeaders clear()
-
-