public class MetaDataBuilder
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
MetaDataBuilder(int maxHeadersSize) |
| Modifier and Type | Method and Description |
|---|---|
MetaData |
build() |
protected boolean |
checkPseudoHeader(HttpHeader header,
java.lang.Object value) |
void |
checkSize(int length,
boolean huffman)
Check that the max size will not be exceeded.
|
void |
emit(HttpField field) |
int |
getMaxSize()
Get the maxSize.
|
int |
getSize()
Get the size.
|
protected void |
streamException(java.lang.String messageFormat,
java.lang.Object... args) |
protected MetaDataBuilder(int maxHeadersSize)
maxHeadersSize - The maximum size of the headers, expressed as total name and value characters.public int getMaxSize()
public int getSize()
public void emit(HttpField field) throws HpackException.SessionException
HpackException.SessionExceptionprotected void streamException(java.lang.String messageFormat,
java.lang.Object... args)
protected boolean checkPseudoHeader(HttpHeader header, java.lang.Object value)
public MetaData build() throws HpackException.StreamException
HpackException.StreamExceptionpublic void checkSize(int length,
boolean huffman)
throws HpackException.SessionException
length - the lengthhuffman - the huffman nameHpackException.SessionException - in case of size errorsCopyright © 1995–2023 Webtide. All rights reserved.