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