Repository navigation
Add support for RFC 4198 Federated Content URNs and URN-equivalence via normalize() and assignedName().
-
Breaking: Reworked NSS validation, encoding and decoding. Percent-encoded literals are preserved and non-UTF-8 octets are accepted (#57). r- and q-components are modelled losslessly with
RQComponent.equals()andhashCode()compare URNs and their parts component-wise. -
Breaking: Namespaces are defined by implementing the new
Namespaceinterface and connected to a URN withURN.in(namespace)andurn.as(namespace)(NamespaceURN). RFC 4198 is implemented this way in the packagede.slub.urn.fdc.URN,NamespaceIdentifierandNamespaceSpecificStringcan no longer be subclassed outside of the library.URNResolverandURNResolvingErrorare removed (#58). The constructor ofRQF_RFC8141no longer takes anOptional. -
URN.parse(),URN.create()andURN.of()create RFC 8141 URNs without choosing a parser first. -
Bugfixes and improvements including #54, #27 as well as fixes to NSS extraction, empty NID handling and
URNSyntaxError.toString(). -
Relicensed under LGPL-3.0-or-later (#56).