Class HelixMetadataInterceptor.Builder
java.lang.Object
com.helixframework.resttemplate.metadata.HelixMetadataInterceptor.Builder
- Enclosing class:
- HelixMetadataInterceptor
Builds instances of
HelixMetadataInterceptor.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofHelixMetadataInterceptor.excludeMetadata(String key) Excludes a metadata key from being passed downstream in the metadata header.excludeMetadata(Collection<String> keys) Excludes a collection of metadata keys from being passed downstream in the metadata header.headerName(String headerName) Sets the name of the metadata header to pass downstream.includeMetadata(String key) Adds a metadata key to include in the downstream metadata header.includeMetadata(Collection<String> keys) Adds a collection of metadata keys to include in the downstream metadata header.
-
Method Details
-
headerName
Sets the name of the metadata header to pass downstream. Defaults to `X-Metadata`.- Parameters:
headerName- name of header- Returns:
- this
HelixMetadataInterceptor.Builder
-
includeMetadata
Adds a metadata key to include in the downstream metadata header.- Parameters:
key- metadata key- Returns:
- this
HelixMetadataInterceptor.Builder
-
includeMetadata
Adds a collection of metadata keys to include in the downstream metadata header.- Parameters:
keys- metadata keys- Returns:
- this
HelixMetadataInterceptor.Builder
-
excludeMetadata
Excludes a metadata key from being passed downstream in the metadata header.- Parameters:
key- metadata key- Returns:
- this
HelixMetadataInterceptor.Builder
-
excludeMetadata
Excludes a collection of metadata keys from being passed downstream in the metadata header.- Parameters:
keys- metadata keys- Returns:
- this
HelixMetadataInterceptor.Builder
-
build
Builds an instance ofHelixMetadataInterceptor.- Returns:
- a
HelixMetadataInterceptor
-