-
public class HttpSpec.ContentTypeHTTP content type values and utilities.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringTEXT_PLAINprivate final StringTEXT_EVENT_STREAMprivate final StringAPPLICATION_GRPCprivate final StringAPPLICATION_GRPC_PROTOprivate final StringAPPLICATION_GRPC_JSONpublic final static HttpSpec.ContentTypeINSTANCE
-
Method Summary
Modifier and Type Method Description final BooleanisStream(String contentType)Checks if the given content type represents a streaming protocol. final StringgetTEXT_PLAIN()Plain text content type. final StringgetTEXT_EVENT_STREAM()Server-Sent Events content type. final StringgetAPPLICATION_GRPC()gRPC content type. final StringgetAPPLICATION_GRPC_PROTO()gRPC with Protocol Buffers content type. final StringgetAPPLICATION_GRPC_JSON()gRPC with JSON content type. -
-
Method Detail
-
isStream
final Boolean isStream(String contentType)
Checks if the given content type represents a streaming protocol.
- Parameters:
contentType- the content type to check
-
getTEXT_PLAIN
final String getTEXT_PLAIN()
Plain text content type.
-
getTEXT_EVENT_STREAM
final String getTEXT_EVENT_STREAM()
Server-Sent Events content type.
-
getAPPLICATION_GRPC
final String getAPPLICATION_GRPC()
gRPC content type.
-
getAPPLICATION_GRPC_PROTO
final String getAPPLICATION_GRPC_PROTO()
gRPC with Protocol Buffers content type.
-
getAPPLICATION_GRPC_JSON
final String getAPPLICATION_GRPC_JSON()
gRPC with JSON content type.
-
-
-
-