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
emit(HttpField field)
int
getMaxSize()
Get the maxSize.int
getSize()
Get the size.void
setMaxSize(int maxSize)
void
streamException(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
-
-