Class PathResolverPrefixedBase

java.lang.Object
io.deephaven.server.session.PathResolverPrefixedBase
All Implemented Interfaces:
PathResolver, TicketResolver
Direct Known Subclasses:
TicketResolverBase

public abstract class PathResolverPrefixedBase extends Object implements PathResolver
A specialization of PathResolver whose path Flight.FlightDescriptor resolution is based on the first path in the list.
  • Constructor Details

    • PathResolverPrefixedBase

      public PathResolverPrefixedBase(String flightDescriptorRoute)
  • Method Details

    • flightDescriptorRoute

      public final String flightDescriptorRoute()
      The first path entry on a route indicates which resolver to use. The remaining path elements are used to resolve the descriptor.
      Returns:
      the string that will route from flight descriptor to this resolver
    • handlesPath

      public final boolean handlesPath(org.apache.arrow.flight.impl.Flight.FlightDescriptor descriptor)
      Returns true if the first path in descriptor is equal to flightDescriptorRoute().
      Specified by:
      handlesPath in interface PathResolver
      Parameters:
      descriptor - the descriptor
      Returns:
      true if this resolver handles the descriptor path