Package org.grpcmock.definitions.matcher
Class HeadersMatcherBuilderImpl
java.lang.Object
org.grpcmock.definitions.matcher.HeadersMatcherBuilderImpl
- All Implemented Interfaces:
BuilderStep,HeadersMatcherBuilderStep<HeadersMatcherBuilderImpl>
public class HeadersMatcherBuilderImpl
extends Object
implements HeadersMatcherBuilderStep<HeadersMatcherBuilderImpl>
- Author:
- Fadelis
-
Method Summary
Modifier and TypeMethodDescriptionbuild()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 givenPredicate.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.grpcmock.definitions.matcher.steps.HeadersMatcherBuilderStep
withHeader, withHeader, withHeader, withHeader, withoutHeader, withoutHeader
-
Method Details
-
withHeader
public <T> HeadersMatcherBuilderImpl withHeader(@Nonnull io.grpc.Metadata.Key<T> headerKey, @Nonnull Predicate<T> predicate) Description copied from interface: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.
- Specified by:
withHeaderin interfaceHeadersMatcherBuilderStep<HeadersMatcherBuilderImpl>
-
build
-