Top Fields Constructors Methods
org.eclipse.jetty.http2.hpack.internal

public Class MetaDataBuilder

extends Object
Class Inheritance
Imports
org.eclipse.jetty.http.HostPortHttpField, .HttpField, .HttpFields, .HttpHeader, .HttpMethod, .HttpScheme, .HttpVersion, .MetaData, org.eclipse.jetty.http2.hpack.HpackException, .HpackException.SessionException, org.eclipse.jetty.util.NanoTime

Field Summary

Modifier and TypeField and Description
private HostPortHttpField
private long
private long
private final HttpFields.Mutable
private int
private String
private String
private String
private boolean
private boolean
private HttpScheme
private int
private Integer
private HpackException.StreamException

Constructor Summary

AccessConstructor and Description
public
MetaDataBuilder(int
The maximum size of the headers, expressed as total name and value characters.
maxHeadersSize
)

Method Summary

Modifier and TypeMethod and Description
public MetaData
protected boolean
public void
emit(HttpField field)

public int

Returns:

the maxSize
getMaxSize
()

Get the maxSize.

public int

Returns:

the current size in bytes
getSize
()

Get the size.

public void
setBeginNanoTime(long beginNanoTime)

public void
setMaxSize(int maxSize)

public void
streamException(String messageFormat, Object... args)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_authorityback to summary
private HostPortHttpField _authority
_beginNanoTimeback to summary
private long _beginNanoTime
_contentLengthback to summary
private long _contentLength
_fieldsback to summary
private final HttpFields.Mutable _fields
_maxSizeback to summary
private int _maxSize
_methodback to summary
private String _method
_pathback to summary
private String _path
_protocolback to summary
private String _protocol
_requestback to summary
private boolean _request
_responseback to summary
private boolean _response
_schemeback to summary
private HttpScheme _scheme
_sizeback to summary
private int _size
_statusback to summary
private Integer _status
_streamExceptionback to summary
private HpackException.StreamException _streamException

Constructor Detail

MetaDataBuilderback to summary
public MetaDataBuilder(int maxHeadersSize)
Parameters
maxHeadersSize:int

The maximum size of the headers, expressed as total name and value characters.

Method Detail

buildback to summary
public MetaData build() throws StreamException
checkPseudoHeaderback to summary
protected boolean checkPseudoHeader(HttpHeader header, Object value)
emitback to summary
public void emit(HttpField field) throws SessionException
getMaxSizeback to summary
public int getMaxSize()

Get the maxSize.

Returns:int

the maxSize

getSizeback to summary
public int getSize()

Get the size.

Returns:int

the current size in bytes

setBeginNanoTimeback to summary
public void setBeginNanoTime(long beginNanoTime)
setMaxSizeback to summary
public void setMaxSize(int maxSize)
streamExceptionback to summary
public void streamException(String messageFormat, Object... args)