Package org.apache.hc.core5.http2.hpack
Class HPackHeader
java.lang.Object
org.apache.hc.core5.http2.hpack.HPackHeader
- All Implemented Interfaces:
Header,NameValuePair
Internal HPack header representation that also contains binary length of
header name and header value.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHPackHeader(String name, int nameLen, String value, int valueLen, boolean sensitive) HPackHeader(String name, String value) HPackHeader(String name, String value, boolean sensitive) HPackHeader(Header header) -
Method Summary
-
Field Details
-
ENTRY_SIZE_OVERHEAD
private static final int ENTRY_SIZE_OVERHEAD- See Also:
-
name
-
nameLen
private final int nameLen -
value
-
valueLen
private final int valueLen -
sensitive
private final boolean sensitive
-
-
Constructor Details
-
HPackHeader
-
HPackHeader
-
HPackHeader
-
HPackHeader
HPackHeader(Header header)
-
-
Method Details
-
getName
Description copied from interface:NameValuePairGets the name of this pair.- Specified by:
getNamein interfaceNameValuePair- Returns:
- the name of this pair, never
null.
-
getNameLen
public int getNameLen() -
getValue
Description copied from interface:NameValuePairGets the value of this pair.- Specified by:
getValuein interfaceNameValuePair- Returns:
- the value of this pair, may be
null.
-
getValueLen
public int getValueLen() -
isSensitive
public boolean isSensitive()Description copied from interface:HeaderReturnstrueif the header should be considered sensitive.Some encoding schemes such as HPACK impose restrictions on encoded representation of sensitive headers.
- Specified by:
isSensitivein interfaceHeader- Returns:
trueif the header should be considered sensitive.
-
getTotalSize
public int getTotalSize() -
toString
-