org.gcube.common.uri
Class HttpMint

java.lang.Object
  extended by org.gcube.common.uri.HttpMint
All Implemented Interfaces:
Mint

public class HttpMint
extends Object
implements Mint

A Mint of HTTP URIs that delegates the identification of the naming authority to an AuthorityProvider .

Author:
Fabio Simeoni

Constructor Summary
HttpMint()
          Creates an instance with a default AuthorityProvider
HttpMint(AuthorityProvider provider)
          Creates an instance with a given AuthorityProvider.
 
Method Summary
 URI mint(List<String> elements)
          Mints an absolute hierarchical URI from the elements of its path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpMint

public HttpMint()
Creates an instance with a default AuthorityProvider

The default provider uses the authority currently in scope, resolving it from a ScopedPropertyAP.AUHTORITY_PROVIDER_PROPERTY_FILE.

See Also:
ScopeProvider, ScopedAPAdapter, ScopedPropertyAP

HttpMint

public HttpMint(AuthorityProvider provider)
Creates an instance with a given AuthorityProvider.

Parameters:
provider - the provider.
Method Detail

mint

public URI mint(List<String> elements)
         throws IllegalStateException
Description copied from interface: Mint
Mints an absolute hierarchical URI from the elements of its path.

Specified by:
mint in interface Mint
Parameters:
elements - the elements, as defined in RFC 3986
Returns:
the URI
Throws:
IllegalStateException - if the URI cannot be minted in the state of the current thread.


Copyright © 2013. All Rights Reserved.