public abstract class Http2Frame extends Object
Http2Frame is the base for all HTTP/2 frames.| Constructor and Description |
|---|
Http2Frame() |
| Modifier and Type | Method and Description |
|---|---|
int |
getStreamId()
Gets the id of the stream that the
Http2Frame belongs to. |
boolean |
isEndOfStream()
Checks whether this frame has the END_STREAM flag.
|
void |
setEndOfStream(boolean endOfStream)
Sets whether this frame marks the end of the stream.
|
void |
setStreamId(int streamId)
Sets the id of the stream that the
Http2Frame belongs to. |
public int getStreamId()
Http2Frame belongs to.public void setStreamId(int streamId)
Http2Frame belongs to.streamId - id of the streampublic boolean isEndOfStream()
true if the END_STREAM flag is set, else falsepublic void setEndOfStream(boolean endOfStream)
endOfStream - whether to set END_STREAM flagCopyright © 2022 WSO2. All rights reserved.