Package io.grpc
Class CompositeCallCredentials.CombiningMetadataApplier
java.lang.Object
io.grpc.CallCredentials.MetadataApplier
io.grpc.CompositeCallCredentials.CombiningMetadataApplier
- Enclosing class:
CompositeCallCredentials
private static final class CompositeCallCredentials.CombiningMetadataApplier
extends CallCredentials.MetadataApplier
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CallCredentials.MetadataApplier
private final Metadata
-
Constructor Summary
ConstructorsConstructorDescriptionCombiningMetadataApplier
(CallCredentials.MetadataApplier delegate, Metadata firstHeaders) -
Method Summary
-
Field Details
-
delegate
-
firstHeaders
-
-
Constructor Details
-
CombiningMetadataApplier
-
-
Method Details
-
apply
Description copied from class:CallCredentials.MetadataApplier
Called when headers are successfully generated. They will be merged into the original headers.- Specified by:
apply
in classCallCredentials.MetadataApplier
-
fail
Description copied from class:CallCredentials.MetadataApplier
Called when there has been an error when preparing the headers. This will fail the RPC.- Specified by:
fail
in classCallCredentials.MetadataApplier
-