ValueType - The type of the header value.public interface HeaderType<ValueType> extends EntityType<ValueType>
HeaderTypes are considered equal if they have the same header name.| Modifier and Type | Method and Description |
|---|---|
Header<ValueType> |
entity(ValueType value)
Factory method to create
Headers of this type from a value. |
Header<ValueType> |
entityFromString(java.lang.String headerValueString)
Factory method to create
Headers of this type from the given String representation. |
java.lang.String |
name()
Returns the name of the header.
|
java.lang.String |
valueString(ValueType headerValue)
Returns the string representation of the given value as defined for this
HeaderType. |
valueFromStringjava.lang.String name()
name in interface EntityType<ValueType>null.Header<ValueType> entityFromString(java.lang.String headerValueString)
Headers of this type from the given String representation.entityFromString in interface EntityType<ValueType>headerValueString - The String representation of the Header as transferred over the wire.Header instance.Header<ValueType> entity(ValueType value)
Headers of this type from a value.entity in interface EntityType<ValueType>header - The value of the header, must not be nullHeader instance.java.lang.String valueString(ValueType headerValue)
HeaderType.valueString in interface EntityType<ValueType>headerValue - The value to convert.