Package org.apache.arrow.flight
Class ServerSessionMiddleware.Factory
java.lang.Object
org.apache.arrow.flight.ServerSessionMiddleware.Factory
- All Implemented Interfaces:
FlightServerMiddleware.Factory<ServerSessionMiddleware>
- Enclosing class:
- ServerSessionMiddleware
public static class ServerSessionMiddleware.Factory
extends Object
implements FlightServerMiddleware.Factory<ServerSessionMiddleware>
Factory for managing and accessing ServerSessionMiddleware.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiononCallStarted
(CallInfo callInfo, CallHeaders incomingHeaders, RequestContext context) A callback for when the call starts.
-
Constructor Details
-
Factory
Construct a factory for ServerSessionMiddleware.Factory manages and accesses persistent sessions based on HTTP cookies.
- Parameters:
idGenerator
- A Callable returning unique session id Strings.
-
-
Method Details
-
onCallStarted
public ServerSessionMiddleware 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<ServerSessionMiddleware>
- Parameters:
callInfo
- Details about the call.incomingHeaders
- A mutable set of request headers.context
- Context about the current request.
-