Class GrpcFilter

java.lang.Object
jakarta.servlet.GenericFilter
jakarta.servlet.http.HttpFilter
io.deephaven.server.jetty.GrpcFilter
All Implemented Interfaces:
jakarta.servlet.Filter, jakarta.servlet.FilterConfig, Serializable

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

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
     
    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 Details

    • 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 Details

  • Method Details

    • doFilter

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

      public <T> T create(ServletAdapter.AdapterConstructor<T> constructor)