public class HeadersMatcherBuilderImpl extends Object implements HeadersMatcherBuilderStep<HeadersMatcherBuilderImpl>
| Modifier and Type | Method and Description |
|---|---|
HeadersMatcher |
build() |
<T> HeadersMatcherBuilderImpl |
withHeader(io.grpc.Metadata.Key<T> headerKey,
Predicate<T> predicate)
Adds a header matcher for the stub, which will trigger only if the given header
has value satisfying given
Predicate. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwithHeader, withHeader, withHeader, withHeader, withoutHeader, withoutHeaderpublic <T> HeadersMatcherBuilderImpl withHeader(@Nonnull io.grpc.Metadata.Key<T> headerKey, @Nonnull Predicate<T> predicate)
HeadersMatcherBuilderStepAdds a header matcher for the stub, which will trigger only if the given header
has value satisfying given Predicate.
Subsequent matchers for the same header will replace the old one.
withHeader in interface HeadersMatcherBuilderStep<HeadersMatcherBuilderImpl>public HeadersMatcher build()
Copyright © 2023. All rights reserved.