Class DefaultSpdySettingsFrame

java.lang.Object
org.jboss.netty.handler.codec.spdy.DefaultSpdySettingsFrame
All Implemented Interfaces:
SpdyFrame, SpdySettingsFrame

public class DefaultSpdySettingsFrame extends Object implements SpdySettingsFrame
The default SpdySettingsFrame implementation.
  • Field Details

  • Constructor Details

    • DefaultSpdySettingsFrame

      public DefaultSpdySettingsFrame()
  • Method Details

    • getIds

      public Set<Integer> getIds()
      Description copied from interface: SpdySettingsFrame
      Returns a Set of the setting IDs. The set's iterator will return the IDs in ascending order.
      Specified by:
      getIds in interface SpdySettingsFrame
    • isSet

      public boolean isSet(int id)
      Description copied from interface: SpdySettingsFrame
      Returns true if the setting ID has a value.
      Specified by:
      isSet in interface SpdySettingsFrame
    • getValue

      public int getValue(int id)
      Description copied from interface: SpdySettingsFrame
      Returns the value of the setting ID. Returns -1 if the setting ID is not set.
      Specified by:
      getValue in interface SpdySettingsFrame
    • setValue

      public void setValue(int id, int value)
      Description copied from interface: SpdySettingsFrame
      Sets the value of the setting ID. The ID cannot be negative and cannot exceed 16777215.
      Specified by:
      setValue in interface SpdySettingsFrame
    • setValue

      public void setValue(int id, int value, boolean persistValue, boolean persisted)
      Description copied from interface: SpdySettingsFrame
      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.
      Specified by:
      setValue in interface SpdySettingsFrame
    • removeValue

      public void removeValue(int id)
      Description copied from interface: SpdySettingsFrame
      Removes the value of the setting ID. Removes all persistence information for the setting.
      Specified by:
      removeValue in interface SpdySettingsFrame
    • isPersistValue

      public boolean isPersistValue(int id)
      Description copied from interface: SpdySettingsFrame
      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.
      Specified by:
      isPersistValue in interface SpdySettingsFrame
    • setPersistValue

      public void setPersistValue(int id, boolean persistValue)
      Description copied from interface: SpdySettingsFrame
      Sets if this setting should be persisted. Has no effect if the setting ID has no value.
      Specified by:
      setPersistValue in interface SpdySettingsFrame
    • isPersisted

      public boolean isPersisted(int id)
      Description copied from interface: SpdySettingsFrame
      Returns true if this setting is persisted. Returns false if this setting should not be persisted or if the setting ID has no value.
      Specified by:
      isPersisted in interface SpdySettingsFrame
    • setPersisted

      public void setPersisted(int id, boolean persisted)
      Description copied from interface: SpdySettingsFrame
      Sets if this setting is persisted. Has no effect if the setting ID has no value.
      Specified by:
      setPersisted in interface SpdySettingsFrame
    • clearPreviouslyPersistedSettings

      public boolean clearPreviouslyPersistedSettings()
      Description copied from interface: SpdySettingsFrame
      Returns true if previously persisted settings should be cleared.
      Specified by:
      clearPreviouslyPersistedSettings in interface SpdySettingsFrame
    • setClearPreviouslyPersistedSettings

      public void setClearPreviouslyPersistedSettings(boolean clear)
      Description copied from interface: SpdySettingsFrame
      Sets if previously persisted settings should be cleared.
      Specified by:
      setClearPreviouslyPersistedSettings in interface SpdySettingsFrame
    • getSettings

    • appendSettings

      private void appendSettings(StringBuilder buf)
    • toString

      public String toString()
      Overrides:
      toString in class Object