All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.deephaven.client.impl.SessionMiddleware Maven / Gradle / Ivy

There is a newer version: 0.37.1
Show newest version
//
// 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