@ExperimentalApi("https://github.com/grpc/grpc-java/issues/5066")
Package io.grpc.servlet.jakarta
API that implements gRPC server as a servlet. The API requires that the application container
supports Servlet 4.0 and enables HTTP/2.
The API is experimental. The authors would like to know more about the real usecases. Users are welcome to provide feedback by commenting on the tracking issue.
-
Interface Summary Interface Description AsyncServletOutputStreamWriter.ActionItem Write actions, e.g.AsyncServletOutputStreamWriter.Log -
Class Summary Class Description AsyncServletOutputStreamWriter Handles write actions from the container thread and the application thread.AsyncServletOutputStreamWriter.WriteState GrpcServlet A simple servlet backed by a gRPC server.ServletAdapter An adapter that transformsHttpServletRequest
into gRPC request and lets a gRPC server process it, and transforms the gRPC response intoHttpServletResponse
.ServletAdapter.GrpcAsyncListener ServletAdapter.GrpcReadListener ServletServerBuilder Builder to build a gRPC server that can run as a servlet.ServletServerBuilder.InternalServerImpl ServletServerBuilder.ServerTransportImpl ServletServerStream ServletServerStream.ByteArrayWritableBuffer ServletServerStream.TrailerSupplier