Module org.apache.arrow.flight.core
Package org.apache.arrow.flight
Interface FlightServerMiddleware.Factory<T extends FlightServerMiddleware>
- Type Parameters:
T- The middleware type.
- All Known Implementing Classes:
ServerCallHeaderAuthMiddleware.Factory,ServerHeaderMiddleware.Factory,ServerSessionMiddleware.Factory
- Enclosing interface:
- FlightServerMiddleware
public static interface FlightServerMiddleware.Factory<T extends FlightServerMiddleware>
A factory for Flight server middleware.
-
Method Summary
Modifier and TypeMethodDescriptiononCallStarted(CallInfo info, CallHeaders incomingHeaders, RequestContext context) A callback for when the call starts.
-
Method Details
-
onCallStarted
A callback for when the call starts.- Parameters:
info- Details about the call.incomingHeaders- A mutable set of request headers.context- Context about the current request.- Throws:
FlightRuntimeException- if the middleware wants to reject the call with the given status
-