Package org.eclipse.jetty.http2.hpack
Class MetaDataBuilder
java.lang.Object
org.eclipse.jetty.http2.hpack.MetaDataBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.eclipse.jetty.http.HostPortHttpField
private long
private org.eclipse.jetty.http.HttpFields
private int
private String
private String
private boolean
private boolean
private org.eclipse.jetty.http.HttpScheme
private int
private Integer
private HpackException.StreamException
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.jetty.http.MetaData
build()
protected boolean
checkPseudoHeader
(org.eclipse.jetty.http.HttpHeader header, Object value) void
emit
(org.eclipse.jetty.http.HttpField field) int
Get the maxSize.int
getSize()
Get the size.void
setMaxSize
(int maxSize) void
streamException
(String messageFormat, Object... args)
-
Field Details
-
_maxSize
private int _maxSize -
_size
private int _size -
_status
-
_method
-
_scheme
private org.eclipse.jetty.http.HttpScheme _scheme -
_authority
private org.eclipse.jetty.http.HostPortHttpField _authority -
_path
-
_contentLength
private long _contentLength -
_fields
private org.eclipse.jetty.http.HttpFields _fields -
_streamException
-
_request
private boolean _request -
_response
private boolean _response
-
-
Constructor Details
-
MetaDataBuilder
protected MetaDataBuilder(int maxHeadersSize) - Parameters:
maxHeadersSize
- The maximum size of the headers, expressed as total name and value characters.
-
-
Method Details
-
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
- Throws:
HpackException.SessionException
-
streamException
-
checkPseudoHeader
-
build
- Throws:
HpackException.StreamException
-