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 protectedMetaDataBuilder(int maxHeadersSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetaDatabuild()protected booleancheckPseudoHeader(HttpHeader header, java.lang.Object value)voidcheckSize(int length, boolean huffman)Check that the max size will not be exceeded.voidemit(HttpField field)intgetMaxSize()Get the maxSize.intgetSize()Get the size.protected voidstreamException(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.SessionExceptionCheck that the max size will not be exceeded.- Parameters:
length- the lengthhuffman- the huffman name- Throws:
HpackException.SessionException- in case of size errors
-
-