Top Description Fields Constructors Methods
org.apache.hc.core5.http2.hpack

pack-priv final Class HPackHeader

extends Object
implements Header
Class Inheritance
All Implemented Interfaces
org.apache.hc.core5.http.Header, org.apache.hc.core5.http.NameValuePair
Imports
org.apache.hc.core5.http.Header

Internal HPack header representation that also contains binary length of header name and header value.

Field Summary

Modifier and TypeField and Description
private static final int
private final String
private final int
private final boolean
private final String
private final int

Constructor Summary

AccessConstructor and Description
pack-priv
HPackHeader(final String name, final int nameLen, final String value, final int valueLen, final boolean sensitive)

pack-priv
HPackHeader(final String name, final String value, final boolean sensitive)

pack-priv
HPackHeader(final String name, final String value)

pack-priv
HPackHeader(final Header header)

Method Summary

Modifier and TypeMethod and Description
public String
getName()

Implements org.apache.hc.core5.http.NameValuePair.getName.

Gets the name of this pair.
public int
public int
public String
getValue()

Implements org.apache.hc.core5.http.NameValuePair.getValue.

Gets the value of this pair.
public int
public boolean
isSensitive()

Implements org.apache.hc.core5.http.Header.isSensitive.

Returns true if the header should be considered sensitive.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

ENTRY_SIZE_OVERHEADback to summary
private static final int ENTRY_SIZE_OVERHEAD
nameback to summary
private final String name
nameLenback to summary
private final int nameLen
sensitiveback to summary
private final boolean sensitive
valueback to summary
private final String value
valueLenback to summary
private final int valueLen

Constructor Detail

HPackHeaderback to summary
pack-priv HPackHeader(final String name, final int nameLen, final String value, final int valueLen, final boolean sensitive)
HPackHeaderback to summary
pack-priv HPackHeader(final String name, final String value, final boolean sensitive)
HPackHeaderback to summary
pack-priv HPackHeader(final String name, final String value)
HPackHeaderback to summary
pack-priv HPackHeader(final Header header)

Method Detail

getNameback to summary
public String getName()

Implements org.apache.hc.core5.http.NameValuePair.getName.

Doc from org.apache.hc.core5.http.NameValuePair.getName.

Gets the name of this pair.

Returns:String

the name of this pair, never null.

Annotations
@Override
getNameLenback to summary
public int getNameLen()
getTotalSizeback to summary
public int getTotalSize()
getValueback to summary
public String getValue()

Implements org.apache.hc.core5.http.NameValuePair.getValue.

Doc from org.apache.hc.core5.http.NameValuePair.getValue.

Gets the value of this pair.

Returns:String

the value of this pair, may be null.

Annotations
@Override
getValueLenback to summary
public int getValueLen()
isSensitiveback to summary
public boolean isSensitive()

Implements org.apache.hc.core5.http.Header.isSensitive.

Doc from org.apache.hc.core5.http.Header.isSensitive.

Returns true if the header should be considered sensitive.

Some encoding schemes such as HPACK impose restrictions on encoded representation of sensitive headers.

Returns:boolean

true if the header should be considered sensitive.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override