Package org.apache.flink.runtime.rest
Class RestServerEndpoint.RestHandlerUrlComparator.CaseInsensitiveOrderComparator
- java.lang.Object
-
- org.apache.flink.runtime.rest.RestServerEndpoint.RestHandlerUrlComparator.CaseInsensitiveOrderComparator
-
- All Implemented Interfaces:
Serializable
,Comparator<String>
- Enclosing class:
- RestServerEndpoint.RestHandlerUrlComparator
public static final class RestServerEndpoint.RestHandlerUrlComparator.CaseInsensitiveOrderComparator extends Object implements Comparator<String>, 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
-
-
Constructor Summary
Constructors Constructor Description CaseInsensitiveOrderComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(String s1, String s2)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public int compare(String s1, String s2)
- Specified by:
compare
in interfaceComparator<String>
-
-