Interface HeadersMatcherBuilderStep<BUILDER extends HeadersMatcherBuilderStep<BUILDER>>
- All Superinterfaces:
BuilderStep
- All Known Subinterfaces:
BidiStreamingMethodStubBuilderStep<ReqT,,RespT> ClientStreamingMethodStubBuilderStep<ReqT,,RespT> RequestPatternBuilderStep<ReqT>,ServerStreamingMethodStubBuilderStep<ReqT,,RespT> UnaryMethodStubBuilderStep<ReqT,RespT>
- All Known Implementing Classes:
BidiStreamingMethodStubBuilderImpl,ClientStreamingMethodStubBuilderImpl,HeadersMatcherBuilderImpl,RequestPatternBuilderImpl,ServerStreamingMethodStubBuilderImpl,UnaryMethodStubBuilderImpl
- Author:
- Fadelis
-
Method Summary
Modifier and TypeMethodDescriptiondefault BUILDERwithHeader(io.grpc.Metadata.Key<byte[]> header, byte[] value) Adds a binary header matcher for the stub, which will trigger only if the given header has binary valueArrays.equals(byte[], byte[])to the provided one.default BUILDERwithHeader(io.grpc.Metadata.Key<String> header, String value) Adds a header matcher for the stub, which will trigger only if the given header has value equal to the provided one.<T> BUILDERwithHeader(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.default BUILDERwithHeader(String header, String value) Adds a header matcher for the stub, which will trigger only if the given header has value equal to the provided one.default BUILDERwithHeader(String headerName, Predicate<String> predicate) Adds a header matcher for the stub, which will trigger only if the given header has value satisfying givenPredicate.default <T> BUILDERwithoutHeader(io.grpc.Metadata.Key<T> headerKey) Adds a header matcher for the stub, which will trigger only if the given header does not exist.default BUILDERwithoutHeader(String header) Adds a header matcher for the stub, which will trigger only if the given header does not exist.
-
Method Details
-
withHeader
Adds 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
Adds a binary header matcher for the stub, which will trigger only if the given header has binary value
Arrays.equals(byte[], byte[])to the provided one.Subsequent headers matchers for the same header will replace the old one.
-
withHeader
Adds a header matcher for the stub, which will trigger only if the given header has value equal to the provided one.
Subsequent headers matchers for the same header will replace the old one.
-
withHeader
Adds 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
Adds a header matcher for the stub, which will trigger only if the given header has value equal to the provided one.
Subsequent headers matchers for the same header will replace the old one.
-
withoutHeader
Adds a header matcher for the stub, which will trigger only if the given header does not exist.
Subsequent headers matchers for the same header will replace the old one.
-
withoutHeader
Adds a header matcher for the stub, which will trigger only if the given header does not exist.
Subsequent headers matchers for the same header will replace the old one.
-