urnlib
urnlib copied to clipboard
Java library for representing, parsing and encoding URNs as in RFC2141 and RFC8141 (Maintained by @claussni)
Consider implementing support for RFC 4198: A Uniform Resource Name (URN) Namespace for Federated Content This issue relates to #24. https://www.rfc-editor.org/rfc/rfc4198.html
Since the library is small and does rely on modern Java features by design, it might be helpful to upgrade to Java 8 LTS in order to support older runtimes...
Since RFC 8141 is backward compatible to RFC 2141 and succeeds the old RFC, code supporting RFC 2141 can be removed in further major releases in order to clear up...
``` URN_8141 urn = URN.rfc8141().parse("urn:XY:ORDER:111111?=x=y&z=c"); System.out.println(urn.toString()); System.out.println(urn.toURI().toString()); ``` ``` urn:LB:ORDER:111111?=x=yz=c urn:LB:ORDER:111111?=x=yz=c ``` where are the `&` separators? I'm running 2.0.1....
why is the constructor for `URN_8141(NID_RFC8141 namespaceIdentifier, NSS_RFC8141 namespaceSpecificString, RQF_RFC8141 rqfComponents)` not public? I'm running 2.0.1....