Class GrpcFilter

  • All Implemented Interfaces:
    jakarta.servlet.Filter, jakarta.servlet.FilterConfig, java.io.Serializable

    public class GrpcFilter
    extends jakarta.servlet.http.HttpFilter
    Deephaven-core's own handler for registering handlers for various grpc endpoints.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static boolean REQUIRE_HTTP2
      Disabling this configuration option allows a server to permit http/1.1 connections.
    • Constructor Summary

      Constructors 
      Constructor Description
      GrpcFilter​(io.grpc.servlet.jakarta.ServletAdapter grpcAdapter)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T create​(io.grpc.servlet.jakarta.ServletAdapter.AdapterConstructor<T> constructor)  
      void doFilter​(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.FilterChain chain)  
      • Methods inherited from class jakarta.servlet.http.HttpFilter

        doFilter
      • Methods inherited from class jakarta.servlet.GenericFilter

        getFilterConfig, getFilterName, getInitParameter, getInitParameterNames, getServletContext, init, init
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface jakarta.servlet.Filter

        destroy
    • Field Detail

      • REQUIRE_HTTP2

        public static final boolean REQUIRE_HTTP2
        Disabling this configuration option allows a server to permit http/1.1 connections. While technically forbidden for grpc calls, it could be helpful for extremely lightweight http clients (IoT use cases), or for grpc-web where http/1.1 is technically supported.
    • Constructor Detail

      • GrpcFilter

        @Inject
        public GrpcFilter​(io.grpc.servlet.jakarta.ServletAdapter grpcAdapter)
    • Method Detail

      • doFilter

        public void doFilter​(jakarta.servlet.http.HttpServletRequest request,
                             jakarta.servlet.http.HttpServletResponse response,
                             jakarta.servlet.FilterChain chain)
                      throws java.io.IOException,
                             jakarta.servlet.ServletException
        Overrides:
        doFilter in class jakarta.servlet.http.HttpFilter
        Throws:
        java.io.IOException
        jakarta.servlet.ServletException
      • create

        public <T> T create​(io.grpc.servlet.jakarta.ServletAdapter.AdapterConstructor<T> constructor)