Package io.gravitee.gateway.api.http
Class DefaultHttpHeaders
- java.lang.Object
-
- io.gravitee.gateway.api.http.DefaultHttpHeaders
-
- All Implemented Interfaces:
HttpHeaders,Iterable<Map.Entry<String,String>>
public class DefaultHttpHeaders extends Object implements HttpHeaders
- Author:
- David BRASSELY (david.brassely at graviteesource.com), GraviteeSource Team
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpHeadersadd(CharSequence name, CharSequence value)HttpHeadersadd(CharSequence name, Iterable<CharSequence> values)voidclear()booleancontains(CharSequence name)booleanequals(Object o)Stringget(CharSequence name)List<String>getAll(CharSequence name)inthashCode()booleanisEmpty()Iterator<Map.Entry<String,String>>iterator()Set<String>names()HttpHeadersremove(CharSequence name)HttpHeadersset(CharSequence name, CharSequence value)HttpHeadersset(CharSequence name, Iterable<CharSequence> values)intsize()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.gravitee.gateway.api.http.HttpHeaders
containsAllKeys, containsKey, deeplyEquals, getFirst, getOrDefault, toSingleValueMap
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
size
public int size()
- Specified by:
sizein interfaceHttpHeaders
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceHttpHeaders
-
get
public String get(CharSequence name)
- Specified by:
getin interfaceHttpHeaders
-
getAll
public List<String> getAll(CharSequence name)
- Specified by:
getAllin interfaceHttpHeaders
-
contains
public boolean contains(CharSequence name)
- Specified by:
containsin interfaceHttpHeaders
-
names
public Set<String> names()
- Specified by:
namesin interfaceHttpHeaders
-
add
public HttpHeaders add(CharSequence name, CharSequence value)
- Specified by:
addin interfaceHttpHeaders
-
add
public HttpHeaders add(CharSequence name, Iterable<CharSequence> values)
- Specified by:
addin interfaceHttpHeaders
-
set
public HttpHeaders set(CharSequence name, CharSequence value)
- Specified by:
setin interfaceHttpHeaders
-
set
public HttpHeaders set(CharSequence name, Iterable<CharSequence> values)
- Specified by:
setin interfaceHttpHeaders
-
remove
public HttpHeaders remove(CharSequence name)
- Specified by:
removein interfaceHttpHeaders
-
clear
public void clear()
- Specified by:
clearin interfaceHttpHeaders
-
-