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)voidemit(HttpField field)intgetMaxSize()Get the maxSize.intgetSize()Get the size.voidsetMaxSize(int maxSize)voidstreamException(java.lang.String messageFormat, java.lang.Object... args)
-
-
-
Method Detail
-
getMaxSize
public int getMaxSize()
Get the maxSize.- Returns:
- the maxSize
-
setMaxSize
public void setMaxSize(int 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
public 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
-
-