Package org.eclipse.jetty.http2.hpack
Class MetaDataBuilder
- java.lang.Object
-
- org.eclipse.jetty.http2.hpack.MetaDataBuilder
-
public class MetaDataBuilder extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MetaDataBuilder(int maxHeadersSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
getMaxSize
public int getMaxSize()
Get the maxSize.- Returns:
- the maxSize
-
getSize
public int getSize()
Get the size.- Returns:
- the current size in bytes
-
emit
public void emit(HttpField field) throws HpackException.SessionException
- Throws:
HpackException.SessionException
-
streamException
protected void streamException(java.lang.String messageFormat, java.lang.Object... args)
-
checkPseudoHeader
protected boolean checkPseudoHeader(HttpHeader header, java.lang.Object value)
-
build
public MetaData build() throws HpackException.StreamException
- Throws:
HpackException.StreamException
-
checkSize
public void checkSize(int length, boolean huffman) throws HpackException.SessionException
Check that the max size will not be exceeded.- Parameters:
length
- the lengthhuffman
- the huffman name- Throws:
HpackException.SessionException
- in case of size errors
-
-