Class RestServerEndpoint.RestHandlerUrlComparator

  • All Implemented Interfaces:
    Serializable, Comparator<Tuple2<RestHandlerSpecification,​org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler>>
    Enclosing class:
    RestServerEndpoint

    public static final class RestServerEndpoint.RestHandlerUrlComparator
    extends Object
    implements Comparator<Tuple2<RestHandlerSpecification,​org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler>>, Serializable
    Comparator for Rest URLs.

    The comparator orders the Rest URLs such that URLs with path parameters are ordered behind those without parameters. E.g.: /jobs /jobs/overview /jobs/:jobid /jobs/:jobid/config /:*

    IMPORTANT: This comparator is highly specific to how Netty path parameters are encoded. Namely with a preceding ':' character.

    See Also:
    Serialized Form