Package org.microproxy.frames
Record Class Http3Frame.Settings
java.lang.Object
java.lang.Record
org.microproxy.frames.Http3Frame.Settings
- Record Components:
values- setting identifiers and their values
- All Implemented Interfaces:
Http3Frame,HttpFrame
- Enclosing interface:
Http3Frame
public static record Http3Frame.Settings(Map<Long,Long> values)
extends Record
implements Http3Frame
SETTINGS (section 7.2.4), the first frame of the control stream.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.microproxy.frames.Http3Frame
Http3Frame.CancelPush, Http3Frame.Data, Http3Frame.GoAway, Http3Frame.Headers, Http3Frame.MaxPushId, Http3Frame.PushPromise, Http3Frame.Settings, Http3Frame.Unknown -
Field Summary
Fields inherited from interface org.microproxy.frames.Http3Frame
MAX_VARINT, SETTINGS_ENABLE_CONNECT_PROTOCOL, SETTINGS_H3_DATAGRAM, SETTINGS_MAX_FIELD_SECTION_SIZE, SETTINGS_QPACK_BLOCKED_STREAMS, SETTINGS_QPACK_MAX_TABLE_CAPACITY, TYPE_CANCEL_PUSH, TYPE_DATA, TYPE_GOAWAY, TYPE_HEADERS, TYPE_MAX_PUSH_ID, TYPE_PUSH_PROMISE, TYPE_SETTINGS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.get(long id) A setting's value in this frame.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.longtypeCode()The frame type's code on the wire.typeName()The frame type's name as the protocol's RFC spells it (DATA,HEADERS,SETTINGS, ...), orUNKNOWNfor an extension or reserved type.values()Returns the value of thevaluesrecord component.withoutValue(long id) This frame without one setting.withValue(long id, long value) This frame with one setting set.withValues(Map<Long, Long> newValues) This frame with other settings.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.microproxy.frames.Http3Frame
protocol
-
Constructor Details
-
Settings
Creates SETTINGS.- Parameters:
values- setting identifiers and values, each 0 to 2^62-1, copied
-
-
Method Details
-
typeName
Description copied from interface:HttpFrameThe frame type's name as the protocol's RFC spells it (DATA,HEADERS,SETTINGS, ...), orUNKNOWNfor an extension or reserved type. -
typeCode
public long typeCode()Description copied from interface:HttpFrameThe frame type's code on the wire. -
get
A setting's value in this frame.- Parameters:
id- the setting identifier- Returns:
- the value, or null if the frame does not carry it
-
withValue
This frame with one setting set.- Parameters:
id- the setting identifiervalue- the value- Returns:
- a copy with the setting
-
withoutValue
This frame without one setting.- Parameters:
id- the setting identifier- Returns:
- a copy without it
-
withValues
This frame with other settings.- Parameters:
newValues- the settings- Returns:
- a copy with them
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
values
Returns the value of thevaluesrecord component.- Returns:
- the value of the
valuesrecord component
-