public class MetaDataBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private HostPortHttpField |
_authority |
private long |
_contentLength |
private HttpFields |
_fields |
private int |
_maxSize |
private java.lang.String |
_method |
private java.lang.String |
_path |
private boolean |
_request |
private boolean |
_response |
private HttpScheme |
_scheme |
private int |
_size |
private java.lang.Integer |
_status |
private HpackException.StreamException |
_streamException |
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) |
private final int _maxSize
private int _size
private java.lang.Integer _status
private java.lang.String _method
private HttpScheme _scheme
private HostPortHttpField _authority
private java.lang.String _path
private long _contentLength
private HttpFields _fields
private HpackException.StreamException _streamException
private boolean _request
private boolean _response
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.SessionException
protected 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.StreamException
public void checkSize(int length, boolean huffman) throws HpackException.SessionException
length
- the lengthhuffman
- the huffman nameHpackException.SessionException
- in case of size errors