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 DefaultHttp3SettingsFramecopyOf(Http3SettingsFrame settingsFrame)Creates a newDefaultHttp3SettingsFramewhich is a copy of the given settings.booleanequals(java.lang.Object o)java.lang.Longget(long key)Get a setting from the frame.inthashCode()java.util.Iterator<java.util.Map.Entry<java.lang.Long,java.lang.Long>>iterator()java.lang.Longput(long key, java.lang.Long value)Put a setting in the frame.java.lang.StringtoString()-
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:Http3SettingsFrameGet a setting from the frame.- Specified by:
getin interfaceHttp3SettingsFrame- Parameters:
key- the key of the setting.- Returns:
- the value of the setting or
nullif none was found with the given key.
-
put
public java.lang.Long put(long key, java.lang.Long value)Description copied from interface:Http3SettingsFramePut a setting in the frame.- Specified by:
putin interfaceHttp3SettingsFrame- Parameters:
key- the key of the settingvalue- the value of the setting.- Returns:
- the previous stored valued for the given key or
nullif none was stored before.
-
iterator
public java.util.Iterator<java.util.Map.Entry<java.lang.Long,java.lang.Long>> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<java.util.Map.Entry<java.lang.Long,java.lang.Long>>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
copyOf
public static DefaultHttp3SettingsFrame copyOf(Http3SettingsFrame settingsFrame)
Creates a newDefaultHttp3SettingsFramewhich is a copy of the given settings.- Parameters:
settingsFrame- the frame to copy.- Returns:
- the newly created copy.
-
-