Interface HeaderOptionalSupplier<T>
- Type Parameters:
T-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Supplies an
Optional for a header type. This presumes that the returned type can be cast to a String. If
additional conversion logic is required, then implementations of this type must provide custom logic by overriding
the default method asString(String)-
Method Summary
-
Method Details
-
get
Gets the resulting header value with the supplied name. -
asString
- Parameters:
name- the header name- Returns:
- the value, or null
-
logger
default org.slf4j.Logger logger()Gets theLoggerused by this instance. By default, this returns the- Returns:
- the
Logger
-