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
_authority
private long
_contentLength
private org.eclipse.jetty.http.HttpFields
_fields
private int
_maxSize
private java.lang.String
_method
private java.lang.String
_path
private boolean
_request
private boolean
_response
private org.eclipse.jetty.http.HttpScheme
_scheme
private int
_size
private java.lang.Integer
_status
private HpackException.StreamException
_streamException
-
Constructor Summary
Constructors Modifier Constructor Description protected
MetaDataBuilder(int maxHeadersSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.jetty.http.MetaData
build()
protected boolean
checkPseudoHeader(org.eclipse.jetty.http.HttpHeader header, java.lang.Object value)
void
emit(org.eclipse.jetty.http.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)
-
-
-
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
-
-