Package org.apache.arrow.flight
Class ServerHeaderMiddleware.Factory
java.lang.Object
org.apache.arrow.flight.ServerHeaderMiddleware.Factory
- All Implemented Interfaces:
FlightServerMiddleware.Factory<ServerHeaderMiddleware>
- Enclosing class:
- ServerHeaderMiddleware
public static class ServerHeaderMiddleware.Factory
extends Object
implements FlightServerMiddleware.Factory<ServerHeaderMiddleware>
Factory for accessing ServerHeaderMiddleware.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiononCallStarted
(CallInfo callInfo, CallHeaders incomingHeaders, RequestContext context) A callback for when the call starts.
-
Constructor Details
-
Factory
public Factory()Construct a factory for receiving call headers.
-
-
Method Details
-
onCallStarted
public ServerHeaderMiddleware onCallStarted(CallInfo callInfo, CallHeaders incomingHeaders, RequestContext context) Description copied from interface:FlightServerMiddleware.Factory
A callback for when the call starts.- Specified by:
onCallStarted
in interfaceFlightServerMiddleware.Factory<ServerHeaderMiddleware>
- Parameters:
callInfo
- Details about the call.incomingHeaders
- A mutable set of request headers.context
- Context about the current request.
-