| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | |
| public static interface | |
| public static enum | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private HeaderMap | |
| private int | currentTableSize
The current table size |
| public static final HpackEncoder. | |
| private final Map | |
| private static final Map | |
| private int | |
| private final Deque | |
| private boolean | |
| private long | |
| private final HpackEncoder. | |
| private int | maxTableSize
The maximum table size |
| private int | |
| private int | |
| private byte[] | |
| private int | |
| private int | |
| private static final Set |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public HpackEncoder. | |
| private HpackEncoder. | |
| private void | |
| private void | |
| private void | |
| public void | |
| private void | |
| private void | |
| private void |
| currentHeaders | back to summary |
|---|---|
| private HeaderMap currentHeaders | |
| currentTableSize | back to summary |
|---|---|
| private int currentTableSize The current table size | |
| DEFAULT_HEADER_FUNCTION | back to summary |
|---|---|
| public static final HpackEncoder. | |
| dynamicTable | back to summary |
|---|---|
| private final Map<HttpString, List<HpackEncoder. | |
| ENCODING_STATIC_TABLE | back to summary |
|---|---|
| private static final Map<HttpString, HpackEncoder. | |
| entryPositionCounter | back to summary |
|---|---|
| private int entryPositionCounter | |
| evictionQueue | back to summary |
|---|---|
| private final Deque<HpackEncoder. | |
| firstPass | back to summary |
|---|---|
| private boolean firstPass | |
| headersIterator | back to summary |
|---|---|
| private long headersIterator | |
| hpackHeaderFunction | back to summary |
|---|---|
| private final HpackEncoder. | |
| maxTableSize | back to summary |
|---|---|
| private int maxTableSize The maximum table size | |
| minNewMaxHeaderSize | back to summary |
|---|---|
| private int minNewMaxHeaderSize | |
| newMaxHeaderSize | back to summary |
|---|---|
| private int newMaxHeaderSize | |
| overflowData | back to summary |
|---|---|
| private byte[] overflowData | |
| overflowLength | back to summary |
|---|---|
| private int overflowLength | |
| overflowPos | back to summary |
|---|---|
| private int overflowPos | |
| SKIP | back to summary |
|---|---|
| private static final Set<HttpString> SKIP | |
| HpackEncoder | back to summary |
|---|---|
| public HpackEncoder(int maxTableSize, HpackEncoder. | |
| HpackEncoder | back to summary |
|---|---|
| public HpackEncoder(int maxTableSize) | |
| addToDynamicTable | back to summary |
|---|---|
| private void addToDynamicTable(HttpString headerName, String val) | |
| encode | back to summary |
|---|---|
| public HpackEncoder. Encodes the headers into a buffer. | |
| findInTable | back to summary |
|---|---|
| private HpackEncoder. | |
| handleTableSizeChange | back to summary |
|---|---|
| private void handleTableSizeChange(ByteBuffer target) | |
| preventPositionRollover | back to summary |
|---|---|
| private void preventPositionRollover() | |
| runEvictionIfRequired | back to summary |
|---|---|
| private void runEvictionIfRequired() | |
| setMaxTableSize | back to summary |
|---|---|
| public void setMaxTableSize(int newSize) | |
| writeHuffmanEncodableName | back to summary |
|---|---|
| private void writeHuffmanEncodableName(ByteBuffer target, HttpString headerName) | |
| writeHuffmanEncodableValue | back to summary |
|---|---|
| private void writeHuffmanEncodableValue(ByteBuffer target, HttpString headerName, String val) | |
| writeValueString | back to summary |
|---|---|
| private void writeValueString(ByteBuffer target, String val) | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int |
| DynamicTableEntry | back to summary |
|---|---|
| pack-priv DynamicTableEntry(HttpString name, String value, int position) | |
| getPosition | back to summary |
|---|---|
| public int getPosition() Overrides io.
| |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the value should be encodedThe header name header, String The header value to be encoded value)Returns true if huffman encoding should be used on the header value |
| public boolean | Returns: true if the value should be encodedThe header name to be encoded header)Returns true if huffman encoding should be used on the header name |
| public boolean |
| shouldUseHuffman | back to summary |
|---|---|
| public boolean shouldUseHuffman(HttpString header, String value) Returns true if huffman encoding should be used on the header value
| |
| shouldUseHuffman | back to summary |
|---|---|
| public boolean shouldUseHuffman(HttpString header) Returns true if huffman encoding should be used on the header name
| |
| shouldUseIndexing | back to summary |
|---|---|
| public boolean shouldUseIndexing(HttpString header, String value) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final HpackEncoder. | |
| public static final HpackEncoder. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static HpackEncoder. | |
| public static HpackEncoder. |
| COMPLETE | back to summary |
|---|---|
| public static final HpackEncoder. | |
| OVERFLOW | back to summary |
|---|---|
| public static final HpackEncoder. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static HpackEncoder. | |
| values | back to summary |
|---|---|
| public static HpackEncoder. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final HttpString | |
| pack-priv int | |
| pack-priv final int | |
| pack-priv final String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int |
| name | back to summary |
|---|---|
| pack-priv final HttpString name | |
| position | back to summary |
|---|---|
| pack-priv int position | |
| size | back to summary |
|---|---|
| pack-priv final int size | |
| value | back to summary |
|---|---|
| pack-priv final String value | |
| TableEntry | back to summary |
|---|---|
| pack-priv TableEntry(HttpString name, String value, int position) | |
| getPosition | back to summary |
|---|---|
| public int getPosition() | |