public static final class RestServerEndpoint.RestHandlerUrlComparator extends Object implements Comparator<Tuple2<RestHandlerSpecification,org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler>>, Serializable
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.
Modifier and Type | Class and Description |
---|---|
static class |
RestServerEndpoint.RestHandlerUrlComparator.CaseInsensitiveOrderComparator
Comparator for Rest URLs.
|
Constructor and Description |
---|
RestHandlerUrlComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Tuple2<RestHandlerSpecification,org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler> o1,
Tuple2<RestHandlerSpecification,org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler> o2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public int compare(Tuple2<RestHandlerSpecification,org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler> o1, Tuple2<RestHandlerSpecification,org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler> o2)
compare
in interface Comparator<Tuple2<RestHandlerSpecification,org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler>>
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.