Enum Class EmptyHeaderView

java.lang.Object
java.lang.Enum<EmptyHeaderView>
dev.relism.flash.models.EmptyHeaderView
All Implemented Interfaces:
HeaderView, Serializable, Comparable<EmptyHeaderView>, Constable

public enum EmptyHeaderView extends Enum<EmptyHeaderView> implements HeaderView
Immutable empty header collection shared by requests without trailers.
  • Enum Constant Details

  • Method Details

    • values

      public static EmptyHeaderView[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EmptyHeaderView valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • first

      public String first(String name)
      Description copied from interface: HeaderView
      Returns the first value of header name (case-insensitive), or null.
      Specified by:
      first in interface HeaderView
    • all

      public List<String> all(String name)
      Description copied from interface: HeaderView
      Returns all values of header name in declaration order, or an empty list.
      Specified by:
      all in interface HeaderView
    • all

      public List<String> all()
      Description copied from interface: HeaderView
      Returns all header values in declaration order.
      Specified by:
      all in interface HeaderView
    • view

      public dev.relism.fpr.core.ByteView view(String name)
      Description copied from interface: HeaderView
      Returns a view over the first value of name, or null — see the implementation's own reuse-window contract.
      Specified by:
      view in interface HeaderView
    • valueEqualsIgnoreCase

      public boolean valueEqualsIgnoreCase(String name, String value)
      Description copied from interface: HeaderView
      Case-insensitive comparison of the first value of name against value.
      Specified by:
      valueEqualsIgnoreCase in interface HeaderView
    • contains

      public boolean contains(String name)
      Description copied from interface: HeaderView
      Whether any header named name is present.
      Specified by:
      contains in interface HeaderView
    • count

      public int count()
      Description copied from interface: HeaderView
      Total number of header lines (not distinct names — a repeated header counts once per line).
      Specified by:
      count in interface HeaderView
    • forEach

      public void forEach(HeaderView.HeaderConsumer consumer)
      Description copied from interface: HeaderView
      Visits every header in declaration order without allocating a per-header object — see each implementation's Javadoc for exactly which instances are reused and their validity window.
      Specified by:
      forEach in interface HeaderView