Class GrpcMediaType
java.lang.Object
io.vertx.grpc.common.GrpcMediaType
The gRPC media types.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CharSequencegRPC.static final CharSequencegRPC with Protobuf message format.static final CharSequencegRPC Web binary.static final CharSequencegRPC Web binary with Protobuf message format.static final CharSequencegRPC Web text (base64).static final CharSequencegRPC Web text (base64) with Protobuf message format. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisGrpcWeb(CharSequence mediaType) Whether the providedmediaTyperepresents gRPC-Webstatic booleanisGrpcWebText(CharSequence mediaType) Whether the providedmediaTyperepresents gRPC-Webstatic WireFormatparseContentType(String contentType, String mediaType)
-
Field Details
-
GRPC
gRPC. -
GRPC_PROTO
gRPC with Protobuf message format. -
GRPC_WEB
gRPC Web binary. -
GRPC_WEB_PROTO
gRPC Web binary with Protobuf message format. -
GRPC_WEB_TEXT
gRPC Web text (base64). -
GRPC_WEB_TEXT_PROTO
gRPC Web text (base64) with Protobuf message format.
-
-
Method Details
-
isGrpcWeb
Whether the providedmediaTyperepresents gRPC-Web- Parameters:
mediaType- the value to test- Returns:
trueif the value represents gRPC-Web,falseotherwise
-
isGrpcWebText
Whether the providedmediaTyperepresents gRPC-Web- Parameters:
mediaType- the value to test- Returns:
trueif the value represents gRPC-Web,falseotherwise
-
parseContentType
-