Top Description Inners Fields Constructors Methods
io.netty.handler.codec.spdy

public Class DefaultSpdySettingsFrame

extends Object
implements SpdySettingsFrame
Class Inheritance
All Implemented Interfaces
io.netty.handler.codec.spdy.SpdySettingsFrame, io.netty.handler.codec.spdy.SpdyFrame
Imports
io.netty.util.internal.StringUtil, java.util.Map, .Set, .TreeMap

The default SpdySettingsFrame implementation.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private boolean
private final Map<Integer, DefaultSpdySettingsFrame.Setting>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
public boolean
clearPreviouslyPersistedSettings()

Implements io.netty.handler.codec.spdy.SpdySettingsFrame.clearPreviouslyPersistedSettings.

Returns true if previously persisted settings should be cleared.
private Set<Map.Entry<Integer, DefaultSpdySettingsFrame.Setting>>
public int
getValue(int id)

Implements io.netty.handler.codec.spdy.SpdySettingsFrame.getValue.

Returns the value of the setting ID. Returns -1 if the setting ID is not set.
public Set<Integer>
ids()

Implements io.netty.handler.codec.spdy.SpdySettingsFrame.ids.

Returns a Set of the setting IDs.
public boolean
isPersisted(int id)

Implements io.netty.handler.codec.spdy.SpdySettingsFrame.isPersisted.

Returns true if this setting is persisted.
public boolean
isPersistValue(int id)

Implements io.netty.handler.codec.spdy.SpdySettingsFrame.isPersistValue.

Returns true if this setting should be persisted.
public boolean
isSet(int id)

Implements io.netty.handler.codec.spdy.SpdySettingsFrame.isSet.

Returns true if the setting ID has a value.
public SpdySettingsFrame
removeValue(int id)

Implements io.netty.handler.codec.spdy.SpdySettingsFrame.removeValue.

Removes the value of the setting ID. Removes all persistence information for the setting.
public SpdySettingsFrame
setClearPreviouslyPersistedSettings(boolean clear)

Implements io.netty.handler.codec.spdy.SpdySettingsFrame.setClearPreviouslyPersistedSettings.

Sets if previously persisted settings should be cleared.
public SpdySettingsFrame
setPersisted(int id, boolean persisted)

Implements io.netty.handler.codec.spdy.SpdySettingsFrame.setPersisted.

Sets if this setting is persisted.
public SpdySettingsFrame
setPersistValue(int id, boolean persistValue)

Implements io.netty.handler.codec.spdy.SpdySettingsFrame.setPersistValue.

Sets if this setting should be persisted.
public SpdySettingsFrame
setValue(int id, int value)

Implements io.netty.handler.codec.spdy.SpdySettingsFrame.setValue.

Sets the value of the setting ID. The ID cannot be negative and cannot exceed 16777215.
public SpdySettingsFrame
setValue(int id, int value, boolean persistValue, boolean persisted)

Implements io.netty.handler.codec.spdy.SpdySettingsFrame.setValue.

Sets the value of the setting ID. Sets if the setting should be persisted (should only be set by the server).
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

clearback to summary
private boolean clear
settingsMapback to summary
private final Map<Integer, DefaultSpdySettingsFrame.Setting> settingsMap

Constructor Detail

DefaultSpdySettingsFrameback to summary
public DefaultSpdySettingsFrame()

Method Detail

appendSettingsback to summary
private void appendSettings(StringBuilder buf)
clearPreviouslyPersistedSettingsback to summary
public boolean clearPreviouslyPersistedSettings()

Implements io.netty.handler.codec.spdy.SpdySettingsFrame.clearPreviouslyPersistedSettings.

Doc from io.netty.handler.codec.spdy.SpdySettingsFrame.clearPreviouslyPersistedSettings.

Returns true if previously persisted settings should be cleared.

Annotations
@Override
getSettingsback to summary
private Set<Map.Entry<Integer, DefaultSpdySettingsFrame.Setting>> getSettings()
getValueback to summary
public int getValue(int id)

Implements io.netty.handler.codec.spdy.SpdySettingsFrame.getValue.

Doc from io.netty.handler.codec.spdy.SpdySettingsFrame.getValue.

Returns the value of the setting ID. Returns -1 if the setting ID is not set.

Annotations
@Override
idsback to summary
public Set<Integer> ids()

Implements io.netty.handler.codec.spdy.SpdySettingsFrame.ids.

Doc from io.netty.handler.codec.spdy.SpdySettingsFrame.ids.

Returns a Set of the setting IDs. The set's iterator will return the IDs in ascending order.

Annotations
@Override
isPersistedback to summary
public boolean isPersisted(int id)

Implements io.netty.handler.codec.spdy.SpdySettingsFrame.isPersisted.

Doc from io.netty.handler.codec.spdy.SpdySettingsFrame.isPersisted.

Returns true if this setting is persisted. Returns false if this setting should not be persisted or if the setting ID has no value.

Annotations
@Override
isPersistValueback to summary
public boolean isPersistValue(int id)

Implements io.netty.handler.codec.spdy.SpdySettingsFrame.isPersistValue.

Doc from io.netty.handler.codec.spdy.SpdySettingsFrame.isPersistValue.

Returns true if this setting should be persisted. Returns false if this setting should not be persisted or if the setting ID has no value.

Annotations
@Override
isSetback to summary
public boolean isSet(int id)

Implements io.netty.handler.codec.spdy.SpdySettingsFrame.isSet.

Doc from io.netty.handler.codec.spdy.SpdySettingsFrame.isSet.

Returns true if the setting ID has a value.

Annotations
@Override
removeValueback to summary
public SpdySettingsFrame removeValue(int id)

Implements io.netty.handler.codec.spdy.SpdySettingsFrame.removeValue.

Doc from io.netty.handler.codec.spdy.SpdySettingsFrame.removeValue.

Removes the value of the setting ID. Removes all persistence information for the setting.

Annotations
@Override
setClearPreviouslyPersistedSettingsback to summary
public SpdySettingsFrame setClearPreviouslyPersistedSettings(boolean clear)

Implements io.netty.handler.codec.spdy.SpdySettingsFrame.setClearPreviouslyPersistedSettings.

Doc from io.netty.handler.codec.spdy.SpdySettingsFrame.setClearPreviouslyPersistedSettings.

Sets if previously persisted settings should be cleared.

Annotations
@Override
setPersistedback to summary
public SpdySettingsFrame setPersisted(int id, boolean persisted)

Implements io.netty.handler.codec.spdy.SpdySettingsFrame.setPersisted.

Doc from io.netty.handler.codec.spdy.SpdySettingsFrame.setPersisted.

Sets if this setting is persisted. Has no effect if the setting ID has no value.

Annotations
@Override
setPersistValueback to summary
public SpdySettingsFrame setPersistValue(int id, boolean persistValue)

Implements io.netty.handler.codec.spdy.SpdySettingsFrame.setPersistValue.

Doc from io.netty.handler.codec.spdy.SpdySettingsFrame.setPersistValue.

Sets if this setting should be persisted. Has no effect if the setting ID has no value.

Annotations
@Override
setValueback to summary
public SpdySettingsFrame setValue(int id, int value)

Implements io.netty.handler.codec.spdy.SpdySettingsFrame.setValue.

Doc from io.netty.handler.codec.spdy.SpdySettingsFrame.setValue.

Sets the value of the setting ID. The ID cannot be negative and cannot exceed 16777215.

Annotations
@Override
setValueback to summary
public SpdySettingsFrame setValue(int id, int value, boolean persistValue, boolean persisted)

Implements io.netty.handler.codec.spdy.SpdySettingsFrame.setValue.

Doc from io.netty.handler.codec.spdy.SpdySettingsFrame.setValue.

Sets 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.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override
io.netty.handler.codec.spdy back to summary

private final Class DefaultSpdySettingsFrame.Setting

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private boolean
private boolean
private int

Constructor Summary

AccessConstructor and Description
pack-priv
Setting(int value, boolean persist, boolean persisted)

Method Summary

Modifier and TypeMethod and Description
pack-priv int
pack-priv boolean
pack-priv boolean
pack-priv void
setPersist(boolean persist)

pack-priv void
setPersisted(boolean persisted)

pack-priv void
setValue(int value)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

persistback to summary
private boolean persist
persistedback to summary
private boolean persisted
valueback to summary
private int value

Constructor Detail

Settingback to summary
pack-priv Setting(int value, boolean persist, boolean persisted)

Method Detail

getValueback to summary
pack-priv int getValue()
isPersistback to summary
pack-priv boolean isPersist()
isPersistedback to summary
pack-priv boolean isPersisted()
setPersistback to summary
pack-priv void setPersist(boolean persist)
setPersistedback to summary
pack-priv void setPersisted(boolean persisted)
setValueback to summary
pack-priv void setValue(int value)