io.deephaven.client.impl.SessionMiddleware Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deephaven-java-client-flight Show documentation
Show all versions of deephaven-java-client-flight Show documentation
The Deephaven client flight library
//
// Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending
//
package io.deephaven.client.impl;
import org.apache.arrow.flight.CallInfo;
import org.apache.arrow.flight.FlightClientMiddleware;
import org.apache.arrow.flight.FlightClientMiddleware.Factory;
import java.util.Objects;
public class SessionMiddleware implements Factory {
private final SessionImpl session;
public SessionMiddleware(SessionImpl session) {
this.session = Objects.requireNonNull(session);
}
@Override
public final FlightClientMiddleware onCallStarted(CallInfo info) {
return new BearerMiddlewear(session._hackBearerHandler());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy