Creating custom URI scheme using URI class

Posted by Sorantis on Stack Overflow See other posts from Stack Overflow or by Sorantis
Published on 2010-03-29T10:40:54Z Indexed on 2010/03/29 10:43 UTC
Read the original article Hit count: 916

Filed under:
|
|

I need to create a custom URI scheme for my project. i.e

urn:myprotocol:{p1}:{p2}:{p3}:{p4} - opaque representation

myprotocol://{p1}/{p2}/{p3}/{p4} - hierarchical representation.

How can I add my scheme to Java URI class? Or, how can I make Java URI to understand my scheme, so I could use it in my code?

Concrete examples are welcome.

Thanks.

© Stack Overflow or respective owner

Related posts about java

Related posts about uri