Package io.netty.handler.codec.http3
Class DefaultHttp3SettingsFrame
- java.lang.Object
-
- io.netty.handler.codec.http3.DefaultHttp3SettingsFrame
-
- All Implemented Interfaces:
Http3ControlStreamFrame
,Http3Frame
,Http3SettingsFrame
,java.lang.Iterable<java.util.Map.Entry<java.lang.Long,java.lang.Long>>
public final class DefaultHttp3SettingsFrame extends java.lang.Object implements Http3SettingsFrame
-
-
Field Summary
-
Fields inherited from interface io.netty.handler.codec.http3.Http3SettingsFrame
HTTP3_SETTINGS_MAX_FIELD_SECTION_SIZE, HTTP3_SETTINGS_QPACK_BLOCKED_STREAMS, HTTP3_SETTINGS_QPACK_MAX_TABLE_CAPACITY
-
-
Constructor Summary
Constructors Constructor Description DefaultHttp3SettingsFrame()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DefaultHttp3SettingsFrame
copyOf(Http3SettingsFrame settingsFrame)
Creates a newDefaultHttp3SettingsFrame
which is a copy of the given settings.boolean
equals(java.lang.Object o)
java.lang.Long
get(long key)
Get a setting from the frame.int
hashCode()
java.util.Iterator<java.util.Map.Entry<java.lang.Long,java.lang.Long>>
iterator()
java.lang.Long
put(long key, java.lang.Long value)
Put a setting in the frame.java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.netty.handler.codec.http3.Http3SettingsFrame
getOrDefault, type
-
-
-
-
Method Detail
-
get
public java.lang.Long get(long key)
Description copied from interface:Http3SettingsFrame
Get a setting from the frame.- Specified by:
get
in interfaceHttp3SettingsFrame
- Parameters:
key
- the key of the setting.- Returns:
- the value of the setting or
null
if none was found with the given key.
-
put
public java.lang.Long put(long key, java.lang.Long value)
Description copied from interface:Http3SettingsFrame
Put a setting in the frame.- Specified by:
put
in interfaceHttp3SettingsFrame
- Parameters:
key
- the key of the settingvalue
- the value of the setting.- Returns:
- the previous stored valued for the given key or
null
if none was stored before.
-
iterator
public java.util.Iterator<java.util.Map.Entry<java.lang.Long,java.lang.Long>> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<java.util.Map.Entry<java.lang.Long,java.lang.Long>>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
copyOf
public static DefaultHttp3SettingsFrame copyOf(Http3SettingsFrame settingsFrame)
Creates a newDefaultHttp3SettingsFrame
which is a copy of the given settings.- Parameters:
settingsFrame
- the frame to copy.- Returns:
- the newly created copy.
-
-