org.gcube.common.uri
Class ScopedMint

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

public class ScopedMint
extends Object
implements Mint

A Mint that returns scoped URIs, i.e. URIs with a final parameter of the following form:

scope=<scope>

where scope is the current scope.

A ScopedMint scopes the URIs generated by an existing Mint, an HttpMint by default.

Author:
Fabio Simeoni
See Also:
ScopeProvider

Constructor Summary
ScopedMint()
          Creates an instance with an HttpMint.
ScopedMint(Mint mint)
          Creates an instance with a given Mint.
 
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

ScopedMint

public ScopedMint()
Creates an instance with an HttpMint.


ScopedMint

public ScopedMint(Mint mint)
Creates an instance with a given Mint.

Parameters:
mint - the mint.
Method Detail

mint

public URI mint(List<String> elements)
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


Copyright © 2013. All Rights Reserved.