Package org.apache.arrow.flight.client
Class ClientCookieMiddleware
java.lang.Object
org.apache.arrow.flight.client.ClientCookieMiddleware
- All Implemented Interfaces:
FlightClientMiddleware
A client middleware for receiving and sending cookie information. Note that this class will not
persist permanent cookies beyond the lifetime of this session.
This middleware will automatically remove cookies that have expired. Note: Negative max-age values currently do not get marked as expired due to a JDK issue. Use max-age=0 to explicitly remove an existing cookie.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Factory used within FlightClient. -
Method Summary
Modifier and TypeMethodDescriptionvoid
onBeforeSendingHeaders
(CallHeaders outgoingHeaders) A callback used before request headers are sent.void
onCallCompleted
(CallStatus status) A callback called after the call completes.void
onHeadersReceived
(CallHeaders incomingHeaders) A callback called after response headers are received.
-
Method Details
-
onBeforeSendingHeaders
Description copied from interface:FlightClientMiddleware
A callback used before request headers are sent. The headers may be manipulated.- Specified by:
onBeforeSendingHeaders
in interfaceFlightClientMiddleware
-
onHeadersReceived
Description copied from interface:FlightClientMiddleware
A callback called after response headers are received. The headers may be manipulated.- Specified by:
onHeadersReceived
in interfaceFlightClientMiddleware
-
onCallCompleted
Description copied from interface:FlightClientMiddleware
A callback called after the call completes.- Specified by:
onCallCompleted
in interfaceFlightClientMiddleware
-