Package org.eclipse.jetty.http2.hpack
Class MetaDataBuilder
- java.lang.Object
-
- org.eclipse.jetty.http2.hpack.MetaDataBuilder
-
public class MetaDataBuilder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private org.eclipse.jetty.http.HostPortHttpField_authorityprivate long_contentLengthprivate org.eclipse.jetty.http.HttpFields_fieldsprivate int_maxSizeprivate java.lang.String_methodprivate java.lang.String_pathprivate boolean_requestprivate boolean_responseprivate org.eclipse.jetty.http.HttpScheme_schemeprivate int_sizeprivate java.lang.Integer_statusprivate HpackException.StreamException_streamException
-
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)voidemit(org.eclipse.jetty.http.HttpField field)intgetMaxSize()Get the maxSize.intgetSize()Get the size.voidsetMaxSize(int maxSize)voidstreamException(java.lang.String messageFormat, java.lang.Object... args)
-
-
-
Field Detail
-
_maxSize
private int _maxSize
-
_size
private int _size
-
_status
private java.lang.Integer _status
-
_method
private java.lang.String _method
-
_scheme
private org.eclipse.jetty.http.HttpScheme _scheme
-
_authority
private org.eclipse.jetty.http.HostPortHttpField _authority
-
_path
private java.lang.String _path
-
_contentLength
private long _contentLength
-
_fields
private org.eclipse.jetty.http.HttpFields _fields
-
_streamException
private HpackException.StreamException _streamException
-
_request
private boolean _request
-
_response
private boolean _response
-
-
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(org.eclipse.jetty.http.HttpField field) throws HpackException.SessionException- Throws:
HpackException.SessionException
-
streamException
public 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
-
-