Class UriCodec

  • All Implemented Interfaces:
    UuidCodec<URI>

    public class UriCodec
    extends Object
    implements UuidCodec<URI>
    Codec for UUID URIs (specifically URNs). The UriCodec encodes UUID to and from an opaque URI. The RFC-4122 defines a URN namespace for UUIDs. URNs are opaque URIs. The URN namespace representation adds the prefix 'urn:uuid:' to a UUID canonical representation. See: https://github.com/f4b6a3/uuid-creator/issues/32 See also: https://stackoverflow.com/questions/4913343/what-is-the-difference-between-uri-url-and-urn
    • Field Detail

      • INSTANCE

        public static final UriCodec INSTANCE
        A shared immutable instance.
    • Constructor Detail

      • UriCodec

        public UriCodec()