More details are here: urn.jcabi.com
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");
}
}
Questions?
If you have any questions about the framework, or something doesn't work as expected, please submit an issue here.
How to contribute?
Fork the repository, make changes, submit a pull request. We promise to review your changes same day and apply to the master
branch, if they look correct.
Please run Maven build before submitting a pull request:
$ mvn clean install -Pqulice