Package net.devh.boot.grpc.common.codec
Class GrpcCodecDefinition
java.lang.Object
net.devh.boot.grpc.common.codec.GrpcCodecDefinition
Container class that contains all relevant information about a grpc codec.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Collection<GrpcCodecDefinition>
The default encodings used by gRPC.static final GrpcCodecDefinition
The codec definition for gzip.static final GrpcCodecDefinition
The codec definition for identity (no-op). -
Constructor Summary
ConstructorsConstructorDescriptionGrpcCodecDefinition
(Codec codec, boolean advertised, CodecType codecType) Creates a new GrpcCodecDefinition. -
Method Summary
-
Field Details
-
GZIP_DEFINITION
The codec definition for gzip. -
IDENTITY_DEFINITION
The codec definition for identity (no-op). -
DEFAULT_DEFINITIONS
The default encodings used by gRPC.
-
-
Constructor Details
-
GrpcCodecDefinition
Creates a new GrpcCodecDefinition.- Parameters:
codec
- The codec bean.advertised
- Whether the codec should be advertised in the headers.codecType
- The type of the codec.
-
-
Method Details
-
getCodec
-
isAdvertised
public boolean isAdvertised() -
getCodecType
-