Hansa Artifact Protocol

Hansa Artifact Protocol

The artifact protocol provides a location and transport protocol independent URL for any resource of any type. Artifacts could be served from a local cache, remote repository servers or even via dynamic discovery of server networks via e.g. Jini or P2P

  • protocol

  • registering of the URL handler in the JVM on startup of a plain Java application:

  • usage:

    URL url = new java.net.URL("artifact:txt:ops4j/my/example#42") InputStream is = url.getConnection().getInputStream();