Fork me on GitHub jcabi

23-Sep-2013 0.8

Uniform Resource Name (URN)

com.jcabi.urn.URN is an immutable implementation of a Uniform Resource Name (URN) according to RFC 2141:

import com.jcabi.urn.URN;
public class Main {
  public static void main(String[] args) {
    URN urn = new URN("urn:test:my-example");
    assert urn.nid().equals("test");
    assert urn.nss().equals("my-example");

The only dependency you need is (you can also download jcabi-urn-0.8.jar and add it to the classpath):


Cutting Edge Version

If you want to use current version of the product, you can do it with this configuration in your pom.xml:


Copyright © 2012-2013, All Rights Reserved. Privacy Policy.

site is built by Apache Maven