Module org.apache.arrow.flight.core
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
Nested ClassesModifier and TypeClassDescriptionstatic classFactory used within FlightClient. -
Method Summary
Modifier and TypeMethodDescriptionvoidonBeforeSendingHeaders(CallHeaders outgoingHeaders) A callback used before request headers are sent.voidonCallCompleted(CallStatus status) A callback called after the call completes.voidonHeadersReceived(CallHeaders incomingHeaders) A callback called after response headers are received.
-
Method Details
-
onBeforeSendingHeaders
Description copied from interface:FlightClientMiddlewareA callback used before request headers are sent. The headers may be manipulated.- Specified by:
onBeforeSendingHeadersin interfaceFlightClientMiddleware
-
onHeadersReceived
Description copied from interface:FlightClientMiddlewareA callback called after response headers are received. The headers may be manipulated.- Specified by:
onHeadersReceivedin interfaceFlightClientMiddleware
-
onCallCompleted
Description copied from interface:FlightClientMiddlewareA callback called after the call completes.- Specified by:
onCallCompletedin interfaceFlightClientMiddleware
-