Package com.illumon.util.jettyhelper
Class GrpcFilter
java.lang.Object
jakarta.servlet.GenericFilter
jakarta.servlet.http.HttpFilter
com.illumon.util.jettyhelper.GrpcFilter
- All Implemented Interfaces:
jakarta.servlet.Filter,jakarta.servlet.FilterConfig,Serializable
public class GrpcFilter
extends jakarta.servlet.http.HttpFilter
Deephaven's own handler for registering handlers for various grpc endpoints.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanDisabling this configuration option allows a server to permit http/1.1 connections. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class jakarta.servlet.http.HttpFilter
doFilterMethods inherited from class jakarta.servlet.GenericFilter
getFilterConfig, getFilterName, getInitParameter, getInitParameterNames, getServletContext, init, initMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.servlet.Filter
destroy
-
Field Details
-
REQUIRE_HTTP2
public static final boolean REQUIRE_HTTP2Disabling 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
-
GrpcFilter
@Inject public GrpcFilter(io.grpc.servlet.jakarta.ServletAdapter grpcAdapter)
-
-
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:
doFilterin classjakarta.servlet.http.HttpFilter- Throws:
IOExceptionjakarta.servlet.ServletException
-
create
public <T> T create(io.grpc.servlet.jakarta.ServletAdapter.AdapterConstructor<T> constructor)
-