org.gcube.common.uri
Interface Mint

All Known Implementing Classes:
HttpMint, ScopedMint

public interface Mint

Mints absolute hierarchical URIs from URI paths.

A Mint is responsible for providing the schema and naming authority of the URI. Depending on the implementation, the Mint may provide further URI elements (e.g query parameters).

Author:
Fabio Simeoni

Method Summary
 URI mint(List<String> pathElements)
          Mints an absolute hierarchical URI from the elements of its path.
 

Method Detail

mint

URI mint(List<String> pathElements)
         throws IllegalArgumentException,
                IllegalStateException
Mints an absolute hierarchical URI from the elements of its path.

Parameters:
pathElements - the elements, as defined in RFC 3986
Returns:
the URI
Throws:
IllegalArgumentException - if the elements do not conform to URI syntax
IllegalStateException - if the URI cannot be minted in the state of the current thread.


Copyright © 2013. All Rights Reserved.