public static final class RestServerEndpoint.RestHandlerUrlComparator.CaseInsensitiveOrderComparator extends Object implements Comparator<String>, 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.
public int compare(String s1, String s2)
compare 在接口中 Comparator<String>Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.