public interface DestinationHeaderProvider
| Modifier and Type | Method and Description |
|---|---|
default List<Header> |
getHeaders(DestinationProperties destination)
Deprecated.
Please use
getHeaders(DestinationRequestContext) instead. The
destination reference can be extracted using DestinationRequestContext.getDestination(). |
default List<Header> |
getHeaders(DestinationRequestContext requestContext)
Provides a list of
Header objects which should be used with the given destination for a request URI. |
static DestinationHeaderProvider |
of(Header... staticHeaders)
Instantiate a local instance with static headers.
|
@Nonnull @Deprecated default List<Header> getHeaders(@Nonnull DestinationProperties destination)
getHeaders(DestinationRequestContext) instead. The
destination reference can be extracted using DestinationRequestContext.getDestination().Header objects which should be used with the given destination.destination - The destination to provide additional headers for.@Nonnull default List<Header> getHeaders(@Nonnull DestinationRequestContext requestContext)
Header objects which should be used with the given destination for a request URI.requestContext - The destination and request specific context.@Beta @Nonnull static DestinationHeaderProvider of(@Nonnull Header... staticHeaders)
staticHeaders - The array of headers to be added.Copyright © 2021 SAP SE. All rights reserved.