Package dev.relism.flash.models
Enum Class EmptyHeaderView
- All Implemented Interfaces:
HeaderView,Serializable,Comparable<EmptyHeaderView>,Constable
Immutable empty header collection shared by requests without trailers.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface dev.relism.flash.models.HeaderView
HeaderView.HeaderConsumer -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionall()Returns all header values in declaration order.Returns all values of headernamein declaration order, or an empty list.booleanWhether any header namednameis present.intcount()Total number of header lines (not distinct names — a repeated header counts once per line).Returns the first value of headername(case-insensitive), ornull.voidforEach(HeaderView.HeaderConsumer consumer) 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.booleanvalueEqualsIgnoreCase(String name, String value) Case-insensitive comparison of the first value ofnameagainstvalue.static EmptyHeaderViewReturns the enum constant of this class with the specified name.static EmptyHeaderView[]values()Returns an array containing the constants of this enum class, in the order they are declared.dev.relism.fpr.core.ByteViewReturns a view over the first value ofname, ornull— see the implementation's own reuse-window contract.
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
first
Description copied from interface:HeaderViewReturns the first value of headername(case-insensitive), ornull.- Specified by:
firstin interfaceHeaderView
-
all
Description copied from interface:HeaderViewReturns all values of headernamein declaration order, or an empty list.- Specified by:
allin interfaceHeaderView
-
all
Description copied from interface:HeaderViewReturns all header values in declaration order.- Specified by:
allin interfaceHeaderView
-
view
Description copied from interface:HeaderViewReturns a view over the first value ofname, ornull— see the implementation's own reuse-window contract.- Specified by:
viewin interfaceHeaderView
-
valueEqualsIgnoreCase
Description copied from interface:HeaderViewCase-insensitive comparison of the first value ofnameagainstvalue.- Specified by:
valueEqualsIgnoreCasein interfaceHeaderView
-
contains
Description copied from interface:HeaderViewWhether any header namednameis present.- Specified by:
containsin interfaceHeaderView
-
count
public int count()Description copied from interface:HeaderViewTotal number of header lines (not distinct names — a repeated header counts once per line).- Specified by:
countin interfaceHeaderView
-
forEach
Description copied from interface:HeaderViewVisits 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:
forEachin interfaceHeaderView
-