Top Fields Constructors Methods
org.eclipse.jetty.http2.frames

public Class HeadersFrame

extends StreamFrame
Class Inheritance
Imports
org.eclipse.jetty.http.MetaData

Field Summary

Modifier and TypeField and Description
private final boolean
private final MetaData
private final PriorityFrame

Constructor Summary

AccessConstructor and Description
public
HeadersFrame(MetaData
the metadata containing HTTP request information
metaData
,
PriorityFrame
the PRIORITY frame associated with this HEADERS frame
priority
,
boolean
whether this frame ends the stream
endStream
)

Creates a new HEADERS frame with an unspecified stream id.

public
HeadersFrame(int
the stream id
streamId
,
MetaData
the metadata containing HTTP request/response information
metaData
,
PriorityFrame
the PRIORITY frame associated with this HEADERS frame
priority
,
boolean
whether this frame ends the stream
endStream
)

Creates a new HEADERS frame with the specified stream id.

Method Summary

Modifier and TypeMethod and Description
public MetaData
public PriorityFrame
public boolean
public String
toString()

Overrides org.eclipse.jetty.http2.frames.Frame.toString.

Returns a string representation of the object.

public HeadersFrame
Inherited from org.eclipse.jetty.http2.frames.StreamFrame:
getStreamId

Field Detail

endStreamback to summary
private final boolean endStream
metaDataback to summary
private final MetaData metaData
priorityback to summary
private final PriorityFrame priority

Constructor Detail

HeadersFrameback to summary
public HeadersFrame(MetaData metaData, PriorityFrame priority, boolean endStream)

Creates a new HEADERS frame with an unspecified stream id.

The stream id will be generated by the implementation while sending this frame to the other peer.

Parameters
metaData:MetaData

the metadata containing HTTP request information

priority:PriorityFrame

the PRIORITY frame associated with this HEADERS frame

endStream:boolean

whether this frame ends the stream

HeadersFrameback to summary
public HeadersFrame(int streamId, MetaData metaData, PriorityFrame priority, boolean endStream)

Creates a new HEADERS frame with the specified stream id.

HEADERS frames with a specific stream id are typically used in responses to request HEADERS frames.

Parameters
streamId:int

the stream id

metaData:MetaData

the metadata containing HTTP request/response information

priority:PriorityFrame

the PRIORITY frame associated with this HEADERS frame

endStream:boolean

whether this frame ends the stream

Method Detail

getMetaDataback to summary
public MetaData getMetaData()
getPriorityback to summary
public PriorityFrame getPriority()
isEndStreamback to summary
public boolean isEndStream()
toStringback to summary
public String toString()

Overrides org.eclipse.jetty.http2.frames.Frame.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
withStreamIdback to summary
public HeadersFrame withStreamId(int streamId)

Implements abstract org.eclipse.jetty.http2.frames.StreamFrame.withStreamId.

Annotations
@Override