public class DefaultSpdySettingsFrame extends Object implements SpdySettingsFrame
SpdySettingsFrame
implementation.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 and Description |
---|
DefaultSpdySettingsFrame() |
Modifier and Type | Method and Description |
---|---|
boolean |
clearPreviouslyPersistedSettings()
Returns
true if previously persisted settings should be cleared. |
Set<Integer> |
getIds()
Returns a
Set of the setting IDs. |
int |
getValue(int id)
Returns the value of the setting ID.
|
boolean |
isPersisted(int id)
Returns
true if this setting is persisted. |
boolean |
isPersistValue(int id)
Returns
true if this setting should be persisted. |
boolean |
isSet(int id)
Returns
true if the setting ID has a value. |
void |
removeValue(int id)
Removes the value of the setting ID.
|
void |
setClearPreviouslyPersistedSettings(boolean clear)
Sets if previously persisted settings should be cleared.
|
void |
setPersisted(int id,
boolean persisted)
Sets if this setting is persisted.
|
void |
setPersistValue(int id,
boolean persistValue)
Sets if this setting should be persisted.
|
void |
setValue(int id,
int value)
Sets the value of the setting ID.
|
void |
setValue(int id,
int value,
boolean persistValue,
boolean persisted)
Sets the value of the setting ID.
|
String |
toString() |
public Set<Integer> getIds()
SpdySettingsFrame
Set
of the setting IDs.
The set's iterator will return the IDs in ascending order.getIds
in interface SpdySettingsFrame
public boolean isSet(int id)
SpdySettingsFrame
true
if the setting ID has a value.isSet
in interface SpdySettingsFrame
public int getValue(int id)
SpdySettingsFrame
getValue
in interface SpdySettingsFrame
public void setValue(int id, int value)
SpdySettingsFrame
setValue
in interface SpdySettingsFrame
public void setValue(int id, int value, boolean persistValue, boolean persisted)
SpdySettingsFrame
setValue
in interface SpdySettingsFrame
public void removeValue(int id)
SpdySettingsFrame
removeValue
in interface SpdySettingsFrame
public boolean isPersistValue(int id)
SpdySettingsFrame
true
if this setting should be persisted.
Returns false
if this setting should not be persisted
or if the setting ID has no value.isPersistValue
in interface SpdySettingsFrame
public void setPersistValue(int id, boolean persistValue)
SpdySettingsFrame
setPersistValue
in interface SpdySettingsFrame
public boolean isPersisted(int id)
SpdySettingsFrame
true
if this setting is persisted.
Returns false
if this setting should not be persisted
or if the setting ID has no value.isPersisted
in interface SpdySettingsFrame
public void setPersisted(int id, boolean persisted)
SpdySettingsFrame
setPersisted
in interface SpdySettingsFrame
public boolean clearPreviouslyPersistedSettings()
SpdySettingsFrame
true
if previously persisted settings should be cleared.clearPreviouslyPersistedSettings
in interface SpdySettingsFrame
public void setClearPreviouslyPersistedSettings(boolean clear)
SpdySettingsFrame
setClearPreviouslyPersistedSettings
in interface SpdySettingsFrame
Copyright © 2008-2016 The Netty Project. All Rights Reserved.