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
Fields Modifier and Type Field Description private CallCredentials.MetadataApplier
delegate
private Metadata
firstHeaders
-
Constructor Summary
Constructors Constructor Description CombiningMetadataApplier(CallCredentials.MetadataApplier delegate, Metadata firstHeaders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(Metadata headers)
Called when headers are successfully generated.void
fail(Status status)
Called when there has been an error when preparing the headers.
-
-
-
Field Detail
-
delegate
private final CallCredentials.MetadataApplier delegate
-
firstHeaders
private final Metadata firstHeaders
-
-
Constructor Detail
-
CombiningMetadataApplier
public CombiningMetadataApplier(CallCredentials.MetadataApplier delegate, Metadata firstHeaders)
-
-
Method Detail
-
apply
public void apply(Metadata headers)
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
public void fail(Status status)
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
-
-