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 org.eclipse.jetty.http.MetaDatabuild()protected booleancheckPseudoHeader(org.eclipse.jetty.http.HttpHeader header, java.lang.Object value)voidcheckSize(int length, boolean huffman)Check that the max size will not be exceeded.voidemit(org.eclipse.jetty.http.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(org.eclipse.jetty.http.HttpField field) throws HpackException.SessionException- Throws:
HpackException.SessionException
-
streamException
protected void streamException(java.lang.String messageFormat, java.lang.Object... args)
-
checkPseudoHeader
protected boolean checkPseudoHeader(org.eclipse.jetty.http.HttpHeader header, java.lang.Object value)
-
build
public org.eclipse.jetty.http.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
-
-