You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by kl0u <gi...@git.apache.org> on 2017/12/07 10:35:09 UTC
[GitHub] flink pull request #5052: [FLINK-8133][REST][docs] Generate REST API documen...
Github user kl0u commented on a diff in the pull request:
https://github.com/apache/flink/pull/5052#discussion_r155482662
--- Diff: flink-runtime/src/main/java/org/apache/flink/runtime/rest/RestServerEndpoint.java ---
@@ -317,7 +317,21 @@ public int compare(
return CASE_INSENSITIVE_ORDER.compare(o1.f0.getTargetRestEndpointURL(), o2.f0.getTargetRestEndpointURL());
}
- static final class CaseInsensitiveOrderComparator implements Comparator<String>, Serializable {
+ /**
+ * Comparator for Rest URLs.
+ *
+ * <p>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
+ * /:*
+ *
+ * <p>IMPORTANT: This comparator is highly specific to how Netty path parameter are encoded. Namely
--- End diff --
1) "path parameter" -> "path parameters"
2) "Namely via" -> "Namely with"
3) Also update accordingly the `RestHandlerUrlComparator` class javadoc (which is a copy)
---