Package io.netty.handler.codec.spdy
Class DefaultSpdySettingsFrame
- java.lang.Object
-
- io.netty.handler.codec.spdy.DefaultSpdySettingsFrame
-
- All Implemented Interfaces:
SpdyFrame,SpdySettingsFrame
public class DefaultSpdySettingsFrame extends java.lang.Object implements SpdySettingsFrame
The defaultSpdySettingsFrameimplementation.
-
-
Field Summary
-
Fields inherited from interface io.netty.handler.codec.spdy.SpdySettingsFrame
SETTINGS_CLIENT_CERTIFICATE_VECTOR_SIZE, SETTINGS_CURRENT_CWND, SETTINGS_DOWNLOAD_BANDWIDTH, SETTINGS_DOWNLOAD_RETRANS_RATE, SETTINGS_INITIAL_WINDOW_SIZE, SETTINGS_MAX_CONCURRENT_STREAMS, SETTINGS_MINOR_VERSION, SETTINGS_ROUND_TRIP_TIME, SETTINGS_UPLOAD_BANDWIDTH
-
-
Constructor Summary
Constructors Constructor Description DefaultSpdySettingsFrame()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanclearPreviouslyPersistedSettings()Returnstrueif previously persisted settings should be cleared.intgetValue(int id)Returns the value of the setting ID.java.util.Set<java.lang.Integer>ids()Returns aSetof the setting IDs.booleanisPersisted(int id)Returnstrueif this setting is persisted.booleanisPersistValue(int id)Returnstrueif this setting should be persisted.booleanisSet(int id)Returnstrueif the setting ID has a value.SpdySettingsFrameremoveValue(int id)Removes the value of the setting ID.SpdySettingsFramesetClearPreviouslyPersistedSettings(boolean clear)Sets if previously persisted settings should be cleared.SpdySettingsFramesetPersisted(int id, boolean persisted)Sets if this setting is persisted.SpdySettingsFramesetPersistValue(int id, boolean persistValue)Sets if this setting should be persisted.SpdySettingsFramesetValue(int id, int value)Sets the value of the setting ID.SpdySettingsFramesetValue(int id, int value, boolean persistValue, boolean persisted)Sets the value of the setting ID.java.lang.StringtoString()
-
-
-
Method Detail
-
ids
public java.util.Set<java.lang.Integer> ids()
Description copied from interface:SpdySettingsFrameReturns aSetof the setting IDs. The set's iterator will return the IDs in ascending order.- Specified by:
idsin interfaceSpdySettingsFrame
-
isSet
public boolean isSet(int id)
Description copied from interface:SpdySettingsFrameReturnstrueif the setting ID has a value.- Specified by:
isSetin interfaceSpdySettingsFrame
-
getValue
public int getValue(int id)
Description copied from interface:SpdySettingsFrameReturns the value of the setting ID. Returns -1 if the setting ID is not set.- Specified by:
getValuein interfaceSpdySettingsFrame
-
setValue
public SpdySettingsFrame setValue(int id, int value)
Description copied from interface:SpdySettingsFrameSets the value of the setting ID. The ID cannot be negative and cannot exceed 16777215.- Specified by:
setValuein interfaceSpdySettingsFrame
-
setValue
public SpdySettingsFrame setValue(int id, int value, boolean persistValue, boolean persisted)
Description copied from interface:SpdySettingsFrameSets the value of the setting ID. Sets if the setting should be persisted (should only be set by the server). Sets if the setting is persisted (should only be set by the client). The ID cannot be negative and cannot exceed 16777215.- Specified by:
setValuein interfaceSpdySettingsFrame
-
removeValue
public SpdySettingsFrame removeValue(int id)
Description copied from interface:SpdySettingsFrameRemoves the value of the setting ID. Removes all persistence information for the setting.- Specified by:
removeValuein interfaceSpdySettingsFrame
-
isPersistValue
public boolean isPersistValue(int id)
Description copied from interface:SpdySettingsFrameReturnstrueif this setting should be persisted. Returnsfalseif this setting should not be persisted or if the setting ID has no value.- Specified by:
isPersistValuein interfaceSpdySettingsFrame
-
setPersistValue
public SpdySettingsFrame setPersistValue(int id, boolean persistValue)
Description copied from interface:SpdySettingsFrameSets if this setting should be persisted. Has no effect if the setting ID has no value.- Specified by:
setPersistValuein interfaceSpdySettingsFrame
-
isPersisted
public boolean isPersisted(int id)
Description copied from interface:SpdySettingsFrameReturnstrueif this setting is persisted. Returnsfalseif this setting should not be persisted or if the setting ID has no value.- Specified by:
isPersistedin interfaceSpdySettingsFrame
-
setPersisted
public SpdySettingsFrame setPersisted(int id, boolean persisted)
Description copied from interface:SpdySettingsFrameSets if this setting is persisted. Has no effect if the setting ID has no value.- Specified by:
setPersistedin interfaceSpdySettingsFrame
-
clearPreviouslyPersistedSettings
public boolean clearPreviouslyPersistedSettings()
Description copied from interface:SpdySettingsFrameReturnstrueif previously persisted settings should be cleared.- Specified by:
clearPreviouslyPersistedSettingsin interfaceSpdySettingsFrame
-
setClearPreviouslyPersistedSettings
public SpdySettingsFrame setClearPreviouslyPersistedSettings(boolean clear)
Description copied from interface:SpdySettingsFrameSets if previously persisted settings should be cleared.- Specified by:
setClearPreviouslyPersistedSettingsin interfaceSpdySettingsFrame
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-