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.MetadataApplierdelegateprivate MetadatafirstHeaders
-
Constructor Summary
Constructors Constructor Description CombiningMetadataApplier(CallCredentials.MetadataApplier delegate, Metadata firstHeaders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(Metadata headers)Called when headers are successfully generated.voidfail(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.MetadataApplierCalled when headers are successfully generated. They will be merged into the original headers.- Specified by:
applyin classCallCredentials.MetadataApplier
-
fail
public void fail(Status status)
Description copied from class:CallCredentials.MetadataApplierCalled when there has been an error when preparing the headers. This will fail the RPC.- Specified by:
failin classCallCredentials.MetadataApplier
-
-