Package io.github.mahmoudimus.http2
Record Class Frame.Continuation
java.lang.Object
java.lang.Record
io.github.mahmoudimus.http2.Frame.Continuation
- Record Components:
streamId- the nonzero stream identifierfieldBlock- the HPACK-encoded field block bytes, retained without copyingendHeaders- whether this fragment completes the field block
- All Implemented Interfaces:
Frame
- Enclosing interface:
Frame
public static record Frame.Continuation(int streamId, byte[] fieldBlock, boolean endHeaders)
extends Record
implements Frame
CONTINUATION (§6.10). Only written:
FrameReader joins CONTINUATION frames into the
HEADERS or PUSH_PROMISE they continue, and never returns one.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.mahmoudimus.http2.Frame
Frame.Continuation, Frame.Data, Frame.GoAway, Frame.Headers, Frame.Ping, Frame.Priority, Frame.PrioritySpec, Frame.PushPromise, Frame.RstStream, Frame.Settings, Frame.Unknown, Frame.WindowUpdate -
Field Summary
Fields inherited from interface io.github.mahmoudimus.http2.Frame
MAX_STREAM_ID -
Constructor Summary
ConstructorsConstructorDescriptionContinuation(int streamId, byte[] fieldBlock, boolean endHeaders) Creates CONTINUATION for a nonzero stream. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theendHeadersrecord component.final booleanIndicates whether some other object is "equal to" this one.byte[]Returns the value of thefieldBlockrecord component.final inthashCode()Returns a hash code value for this object.intstreamId()Returns the value of thestreamIdrecord component.final StringtoString()Returns a string representation of this record class.inttype()The frame type code, one of theFrameTypeconstants (or any value forFrame.Unknown).
-
Constructor Details
-
Continuation
public Continuation(int streamId, byte[] fieldBlock, boolean endHeaders) Creates CONTINUATION for a nonzero stream.- Parameters:
streamId- the nonzero stream identifierfieldBlock- the HPACK-encoded field block bytes, retained without copyingendHeaders- whether this fragment completes the field block
-
-
Method Details
-
type
public int type()Description copied from interface:FrameThe frame type code, one of theFrameTypeconstants (or any value forFrame.Unknown). -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
streamId
public int streamId()Returns the value of thestreamIdrecord component. -
fieldBlock
public byte[] fieldBlock()Returns the value of thefieldBlockrecord component.- Returns:
- the value of the
fieldBlockrecord component
-
endHeaders
public boolean endHeaders()Returns the value of theendHeadersrecord component.- Returns:
- the value of the
endHeadersrecord component
-