Package com.linkedin.alpini.netty4.http2
Class Http1Headers
- java.lang.Object
-
- io.netty.handler.codec.http.HttpHeaders
-
- com.linkedin.alpini.netty4.http2.Http1Headers
-
- All Implemented Interfaces:
java.lang.Iterable<java.util.Map.Entry<java.lang.String,java.lang.String>>
public class Http1Headers extends io.netty.handler.codec.http.HttpHeaders
-
-
Constructor Summary
Constructors Constructor Description Http1Headers(boolean validateCopies)
Http1Headers(io.netty.handler.codec.http2.Http2Headers headers, boolean validateCopies)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.netty.handler.codec.http.HttpHeaders
add(io.netty.handler.codec.http.HttpHeaders headers)
io.netty.handler.codec.http.HttpHeaders
add(java.lang.CharSequence name, java.lang.Iterable<?> values)
io.netty.handler.codec.http.HttpHeaders
add(java.lang.CharSequence name, java.lang.Object value)
io.netty.handler.codec.http.HttpHeaders
add(java.lang.String name, java.lang.Iterable<?> values)
io.netty.handler.codec.http.HttpHeaders
add(java.lang.String name, java.lang.Object value)
io.netty.handler.codec.http.HttpHeaders
addInt(java.lang.CharSequence name, int value)
io.netty.handler.codec.http.HttpHeaders
addShort(java.lang.CharSequence name, short value)
io.netty.handler.codec.http.HttpHeaders
clear()
boolean
contains(java.lang.CharSequence name)
boolean
contains(java.lang.CharSequence name, java.lang.CharSequence value, boolean ignoreCase)
boolean
contains(java.lang.String name)
boolean
contains(java.lang.String name, java.lang.String value, boolean ignoreCase)
Http1Headers
copy()
java.util.List<java.util.Map.Entry<java.lang.String,java.lang.String>>
entries()
java.lang.String
get(java.lang.CharSequence name)
java.lang.String
get(java.lang.CharSequence name, java.lang.String defaultValue)
java.lang.String
get(java.lang.String name)
java.util.List<java.lang.String>
getAll(java.lang.CharSequence name)
java.util.List<java.lang.String>
getAll(java.lang.String name)
io.netty.handler.codec.http2.Http2Headers
getHttp2Headers()
java.lang.Integer
getInt(java.lang.CharSequence name)
int
getInt(java.lang.CharSequence name, int defaultValue)
java.lang.Short
getShort(java.lang.CharSequence name)
short
getShort(java.lang.CharSequence name, short defaultValue)
java.lang.Long
getTimeMillis(java.lang.CharSequence name)
long
getTimeMillis(java.lang.CharSequence name, long defaultValue)
boolean
isEmpty()
protected boolean
isVisible(java.lang.CharSequence cs)
java.util.Iterator<java.util.Map.Entry<java.lang.String,java.lang.String>>
iterator()
java.util.Iterator<java.util.Map.Entry<java.lang.CharSequence,java.lang.CharSequence>>
iteratorCharSequence()
java.util.Set<java.lang.String>
names()
io.netty.handler.codec.http.HttpHeaders
remove(java.lang.CharSequence name)
io.netty.handler.codec.http.HttpHeaders
remove(java.lang.String name)
io.netty.handler.codec.http.HttpHeaders
set(io.netty.handler.codec.http.HttpHeaders headers)
io.netty.handler.codec.http.HttpHeaders
set(java.lang.CharSequence name, java.lang.Iterable<?> values)
io.netty.handler.codec.http.HttpHeaders
set(java.lang.CharSequence name, java.lang.Object value)
io.netty.handler.codec.http.HttpHeaders
set(java.lang.String name, java.lang.Iterable<?> values)
io.netty.handler.codec.http.HttpHeaders
set(java.lang.String name, java.lang.Object value)
io.netty.handler.codec.http.HttpHeaders
setAll(io.netty.handler.codec.http.HttpHeaders headers)
io.netty.handler.codec.http.HttpHeaders
setInt(java.lang.CharSequence name, int value)
io.netty.handler.codec.http.HttpHeaders
setShort(java.lang.CharSequence name, short value)
int
size()
java.util.Iterator<? extends java.lang.CharSequence>
valueCharSequenceIterator(java.lang.CharSequence name)
java.util.Iterator<java.lang.String>
valueStringIterator(java.lang.CharSequence name)
-
Methods inherited from class io.netty.handler.codec.http.HttpHeaders
addDateHeader, addDateHeader, addHeader, addHeader, addIntHeader, addIntHeader, clearHeaders, containsValue, encodeAscii, equalsIgnoreCase, getAllAsString, getAsString, getContentLength, getContentLength, getDate, getDate, getDateHeader, getDateHeader, getDateHeader, getDateHeader, getHeader, getHeader, getHeader, getHeader, getHost, getHost, getIntHeader, getIntHeader, getIntHeader, getIntHeader, is100ContinueExpected, isContentLengthSet, isKeepAlive, isTransferEncodingChunked, iteratorAsString, newEntity, removeHeader, removeHeader, removeTransferEncodingChunked, set100ContinueExpected, set100ContinueExpected, setContentLength, setDate, setDateHeader, setDateHeader, setDateHeader, setDateHeader, setHeader, setHeader, setHeader, setHeader, setHost, setHost, setIntHeader, setIntHeader, setIntHeader, setIntHeader, setKeepAlive, setTransferEncodingChunked, toString
-
-
-
-
Method Detail
-
getHttp2Headers
public io.netty.handler.codec.http2.Http2Headers getHttp2Headers()
-
get
public java.lang.String get(java.lang.String name)
- Specified by:
get
in classio.netty.handler.codec.http.HttpHeaders
-
get
public java.lang.String get(java.lang.CharSequence name)
- Overrides:
get
in classio.netty.handler.codec.http.HttpHeaders
-
get
public java.lang.String get(java.lang.CharSequence name, java.lang.String defaultValue)
- Overrides:
get
in classio.netty.handler.codec.http.HttpHeaders
-
getInt
public java.lang.Integer getInt(java.lang.CharSequence name)
- Specified by:
getInt
in classio.netty.handler.codec.http.HttpHeaders
-
getInt
public int getInt(java.lang.CharSequence name, int defaultValue)
- Specified by:
getInt
in classio.netty.handler.codec.http.HttpHeaders
-
getShort
public java.lang.Short getShort(java.lang.CharSequence name)
- Specified by:
getShort
in classio.netty.handler.codec.http.HttpHeaders
-
getShort
public short getShort(java.lang.CharSequence name, short defaultValue)
- Specified by:
getShort
in classio.netty.handler.codec.http.HttpHeaders
-
getTimeMillis
public java.lang.Long getTimeMillis(java.lang.CharSequence name)
- Specified by:
getTimeMillis
in classio.netty.handler.codec.http.HttpHeaders
-
getTimeMillis
public long getTimeMillis(java.lang.CharSequence name, long defaultValue)
- Specified by:
getTimeMillis
in classio.netty.handler.codec.http.HttpHeaders
-
getAll
public java.util.List<java.lang.String> getAll(java.lang.String name)
- Specified by:
getAll
in classio.netty.handler.codec.http.HttpHeaders
-
getAll
public java.util.List<java.lang.String> getAll(java.lang.CharSequence name)
- Overrides:
getAll
in classio.netty.handler.codec.http.HttpHeaders
-
entries
public java.util.List<java.util.Map.Entry<java.lang.String,java.lang.String>> entries()
- Specified by:
entries
in classio.netty.handler.codec.http.HttpHeaders
-
contains
public boolean contains(java.lang.String name)
- Specified by:
contains
in classio.netty.handler.codec.http.HttpHeaders
-
contains
public boolean contains(java.lang.CharSequence name)
- Overrides:
contains
in classio.netty.handler.codec.http.HttpHeaders
-
iterator
@Nonnull public java.util.Iterator<java.util.Map.Entry<java.lang.String,java.lang.String>> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<java.util.Map.Entry<java.lang.String,java.lang.String>>
- Specified by:
iterator
in classio.netty.handler.codec.http.HttpHeaders
-
iteratorCharSequence
public java.util.Iterator<java.util.Map.Entry<java.lang.CharSequence,java.lang.CharSequence>> iteratorCharSequence()
- Specified by:
iteratorCharSequence
in classio.netty.handler.codec.http.HttpHeaders
-
valueStringIterator
public java.util.Iterator<java.lang.String> valueStringIterator(java.lang.CharSequence name)
- Overrides:
valueStringIterator
in classio.netty.handler.codec.http.HttpHeaders
-
valueCharSequenceIterator
public java.util.Iterator<? extends java.lang.CharSequence> valueCharSequenceIterator(java.lang.CharSequence name)
- Overrides:
valueCharSequenceIterator
in classio.netty.handler.codec.http.HttpHeaders
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in classio.netty.handler.codec.http.HttpHeaders
-
size
public int size()
- Specified by:
size
in classio.netty.handler.codec.http.HttpHeaders
-
isVisible
protected boolean isVisible(java.lang.CharSequence cs)
-
names
public java.util.Set<java.lang.String> names()
- Specified by:
names
in classio.netty.handler.codec.http.HttpHeaders
-
add
public io.netty.handler.codec.http.HttpHeaders add(java.lang.String name, java.lang.Object value)
- Specified by:
add
in classio.netty.handler.codec.http.HttpHeaders
-
add
public io.netty.handler.codec.http.HttpHeaders add(java.lang.CharSequence name, java.lang.Object value)
- Overrides:
add
in classio.netty.handler.codec.http.HttpHeaders
-
add
public io.netty.handler.codec.http.HttpHeaders add(java.lang.String name, java.lang.Iterable<?> values)
- Specified by:
add
in classio.netty.handler.codec.http.HttpHeaders
-
add
public io.netty.handler.codec.http.HttpHeaders add(java.lang.CharSequence name, java.lang.Iterable<?> values)
- Overrides:
add
in classio.netty.handler.codec.http.HttpHeaders
-
add
public io.netty.handler.codec.http.HttpHeaders add(io.netty.handler.codec.http.HttpHeaders headers)
- Overrides:
add
in classio.netty.handler.codec.http.HttpHeaders
-
addInt
public io.netty.handler.codec.http.HttpHeaders addInt(java.lang.CharSequence name, int value)
- Specified by:
addInt
in classio.netty.handler.codec.http.HttpHeaders
-
addShort
public io.netty.handler.codec.http.HttpHeaders addShort(java.lang.CharSequence name, short value)
- Specified by:
addShort
in classio.netty.handler.codec.http.HttpHeaders
-
set
public io.netty.handler.codec.http.HttpHeaders set(java.lang.String name, java.lang.Object value)
- Specified by:
set
in classio.netty.handler.codec.http.HttpHeaders
-
set
public io.netty.handler.codec.http.HttpHeaders set(java.lang.CharSequence name, java.lang.Object value)
- Overrides:
set
in classio.netty.handler.codec.http.HttpHeaders
-
set
public io.netty.handler.codec.http.HttpHeaders set(java.lang.String name, java.lang.Iterable<?> values)
- Specified by:
set
in classio.netty.handler.codec.http.HttpHeaders
-
set
public io.netty.handler.codec.http.HttpHeaders set(java.lang.CharSequence name, java.lang.Iterable<?> values)
- Overrides:
set
in classio.netty.handler.codec.http.HttpHeaders
-
set
public io.netty.handler.codec.http.HttpHeaders set(io.netty.handler.codec.http.HttpHeaders headers)
- Overrides:
set
in classio.netty.handler.codec.http.HttpHeaders
-
setAll
public io.netty.handler.codec.http.HttpHeaders setAll(io.netty.handler.codec.http.HttpHeaders headers)
- Overrides:
setAll
in classio.netty.handler.codec.http.HttpHeaders
-
setInt
public io.netty.handler.codec.http.HttpHeaders setInt(java.lang.CharSequence name, int value)
- Specified by:
setInt
in classio.netty.handler.codec.http.HttpHeaders
-
setShort
public io.netty.handler.codec.http.HttpHeaders setShort(java.lang.CharSequence name, short value)
- Specified by:
setShort
in classio.netty.handler.codec.http.HttpHeaders
-
remove
public io.netty.handler.codec.http.HttpHeaders remove(java.lang.String name)
- Specified by:
remove
in classio.netty.handler.codec.http.HttpHeaders
-
remove
public io.netty.handler.codec.http.HttpHeaders remove(java.lang.CharSequence name)
- Overrides:
remove
in classio.netty.handler.codec.http.HttpHeaders
-
clear
public io.netty.handler.codec.http.HttpHeaders clear()
- Specified by:
clear
in classio.netty.handler.codec.http.HttpHeaders
-
contains
public boolean contains(java.lang.String name, java.lang.String value, boolean ignoreCase)
- Overrides:
contains
in classio.netty.handler.codec.http.HttpHeaders
-
contains
public boolean contains(java.lang.CharSequence name, java.lang.CharSequence value, boolean ignoreCase)
- Overrides:
contains
in classio.netty.handler.codec.http.HttpHeaders
-
copy
public Http1Headers copy()
- Overrides:
copy
in classio.netty.handler.codec.http.HttpHeaders
-
-